fix: Return statement after sendToL2 was missing (#3217)

fixes #9483
This commit is contained in:
Khushboo-dev-cpp 2023-02-22 08:39:26 +01:00 committed by GitHub
parent 27730057d0
commit dd3f4058c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -192,6 +192,7 @@ func (h *HopBridge) Send(sendArgs *TransactionBridge, verifiedAccount *account.S
token := h.tokenManager.FindToken(fromNetwork, sendArgs.HopTx.Symbol)
if fromNetwork.Layer == 1 {
hash, err = h.sendToL2(sendArgs.ChainID, sendArgs.HopTx, verifiedAccount, token)
return hash, err
}
hash, err = h.swapAndSend(sendArgs.ChainID, sendArgs.HopTx, verifiedAccount, token)
return hash, err