Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
fix abit encoding:
Browse files Browse the repository at this point in the history
  • Loading branch information
P1sar committed Jul 6, 2021
1 parent 9d0c076 commit 2a7e128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chains/evm/listener/event-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func Erc20EventHandler(sourceID, destId uint8, nonce uint64, handlerContractAddr
Amount *big.Int
}
a, err := abi.JSON(strings.NewReader(definition))
input, err := a.Pack("getDepositRecord", big.NewInt(0).SetUint64(nonce).Bytes(), big.NewInt(0).SetUint64(uint64(destId)).Bytes())
input, err := a.Pack("getDepositRecord", nonce, destId)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2a7e128

Please sign in to comment.