chore(wallet)_: missed check for error added to few processors

This commit is contained in:
Sale Djenic 2024-10-31 11:41:51 +01:00
parent 861ef85eb0
commit 6dd673ea60
4 changed files with 12 additions and 0 deletions

View File

@ -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
}

View File

@ -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)
}

View File

@ -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
}

View File

@ -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
}