diff --git a/services/wallet/bridge/erc721_transfer.go b/services/wallet/bridge/erc721_transfer.go index 3a96414b7..a5a52fe05 100644 --- a/services/wallet/bridge/erc721_transfer.go +++ b/services/wallet/bridge/erc721_transfer.go @@ -2,6 +2,7 @@ package bridge import ( "context" + "fmt" "math/big" "strings" @@ -60,11 +61,15 @@ func (s *ERC721TransferBridge) EstimateGas(fromNetwork *params.Network, toNetwor if err != nil { return 0, err } - + id, success := big.NewInt(0).SetString(token.Symbol, 0) + if !success { + return 0, fmt.Errorf("failed to convert %s to big.Int", token.Symbol) + } input, err = abi.Pack("safeTransferFrom", from, to, - new(big.Int)) + id, + ) if err != nil { return 0, err