From 5ac28037f9876d823b9993afe881e35f4afd087a Mon Sep 17 00:00:00 2001 From: jeff <113397187+cyberhorsey@users.noreply.github.com> Date: Fri, 13 Oct 2023 18:32:21 -0700 Subject: [PATCH] fix(relayer): ERC1155 bridging, amount => amounts (#14959) --- packages/relayer/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/relayer/types.go b/packages/relayer/types.go index 5cb44606795..e394464b53c 100644 --- a/packages/relayer/types.go +++ b/packages/relayer/types.go @@ -233,7 +233,7 @@ func DecodeMessageSentData(event *bridge.BridgeMessageSent) (EventType, Canonica erc1155VaultABI, err := erc1155VaultMD.GetAbi() if err != nil { - return eventType, nil, big.NewInt(0), errors.Wrap(err, "erc20VaultMD.GetAbi()") + return eventType, nil, big.NewInt(0), errors.Wrap(err, "erc1155VaultMD.GetAbi()") } method, err := erc1155VaultABI.MethodById(event.Message.Data[:4]) @@ -265,7 +265,7 @@ func DecodeMessageSentData(event *bridge.BridgeMessageSent) (EventType, Canonica Name: t.Name, } - amounts := inputsMap["amount"].([]*big.Int) + amounts := inputsMap["amounts"].([]*big.Int) for _, v := range amounts { amount = amount.Add(amount, v)