mirror of
https://github.com/status-im/status-go.git
synced 2025-02-18 17:57:28 +00:00
chore(wallet)_: missed check for error added to few processors
This commit is contained in:
parent
861ef85eb0
commit
6dd673ea60
@ -443,6 +443,9 @@ func (s *CelerBridgeProcessor) BuildTransaction(sendArgs *MultipathProcessorTxAr
|
||||
|
||||
func (s *CelerBridgeProcessor) BuildTransactionV2(sendArgs *transactions.SendTxArgs, lastUsedNonce int64) (*ethTypes.Transaction, uint64, error) {
|
||||
tx, err := s.sendOrBuildV2(sendArgs, nil, lastUsedNonce)
|
||||
if err != nil {
|
||||
return nil, 0, createBridgeCellerErrorResponse(err)
|
||||
}
|
||||
return tx, tx.Nonce(), err
|
||||
}
|
||||
|
||||
|
@ -432,6 +432,9 @@ func (h *HopBridgeProcessor) BuildTransaction(sendArgs *MultipathProcessorTxArgs
|
||||
|
||||
func (h *HopBridgeProcessor) BuildTransactionV2(sendArgs *transactions.SendTxArgs, lastUsedNonce int64) (*ethTypes.Transaction, uint64, error) {
|
||||
tx, err := h.sendOrBuildV2(sendArgs, nil, lastUsedNonce)
|
||||
if err != nil {
|
||||
return nil, 0, createBridgeHopErrorResponse(err)
|
||||
}
|
||||
return tx, tx.Nonce(), createBridgeHopErrorResponse(err)
|
||||
}
|
||||
|
||||
|
@ -214,6 +214,9 @@ func (s *ERC1155Processor) BuildTransaction(sendArgs *MultipathProcessorTxArgs,
|
||||
|
||||
func (s *ERC1155Processor) BuildTransactionV2(sendArgs *transactions.SendTxArgs, lastUsedNonce int64) (*ethTypes.Transaction, uint64, error) {
|
||||
tx, err := s.sendOrBuildV2(sendArgs, nil, lastUsedNonce)
|
||||
if err != nil {
|
||||
return nil, 0, createERC1155ErrorResponse(err)
|
||||
}
|
||||
return tx, tx.Nonce(), err
|
||||
}
|
||||
|
||||
|
@ -294,6 +294,9 @@ func (s *ERC721Processor) BuildTransaction(sendArgs *MultipathProcessorTxArgs, l
|
||||
|
||||
func (s *ERC721Processor) BuildTransactionV2(sendArgs *transactions.SendTxArgs, lastUsedNonce int64) (*ethTypes.Transaction, uint64, error) {
|
||||
tx, err := s.sendOrBuildV2(sendArgs, nil, lastUsedNonce)
|
||||
if err != nil {
|
||||
return nil, 0, createERC721ErrorResponse(err)
|
||||
}
|
||||
return tx, tx.Nonce(), err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user