Last active
July 31, 2022 14:07
-
-
Save EtDu/c4815f9c79216ddad1c54d6a6caa93d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { utils } = require("ethers") | |
const { | |
formatUnits | |
} = utils | |
const calldata = "0x128acb08000000000000000000000000eef86c2e49e11345f1a693675df9a38f7d880c8f0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000002ea20ceeb6f00000000000000000000000000000000000000000000000000000001000276a400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a7030100000bb800000000000000aa19700d222ca3107a010204358ad599c3a0ff1de082011efddc58f1908eb6e6d8000000000000008a159794279997eacd0000660301000001f400000000000000000000026d8137b3e003000c000b000000000000001b9deb1da1851e622901040b8ad599c3a0ff1de082011efddc58f1908eb6e6d800000000000000000000007c9f97378f000c0035000000000000008a159794279997eacd00000000000000000000000000000000000000000000000000" | |
const decoded = utils.defaultAbiCoder.decode( | |
['address', 'bool', 'int256', 'uint160' , 'bytes'], | |
utils.hexDataSlice(calldata, 4) | |
) | |
console.log(decoded) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment