Skip to content

Commit

Permalink
fix(relayer): ERC1155 bridging, amount => amounts (#14959)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey authored Oct 14, 2023
1 parent 5455267 commit d42c59d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/relayer/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d42c59d

Please sign in to comment.