Skip to content

Instantly share code, notes, and snippets.

@k06a
Last active October 24, 2017 14:22
Show Gist options
  • Save k06a/532489d786ce5635b1be513122052ed7 to your computer and use it in GitHub Desktop.
Save k06a/532489d786ce5635b1be513122052ed7 to your computer and use it in GitHub Desktop.
Constructor Arguments ABI-encoded
var abi = require('ethereumjs-abi');
var x = abi.simpleEncode("constructor(uint256,uint256,uint256,address,address,address,address)",
1508878283,
1519431362,
4700,
"0x0b8e27013dfA822bF1cc01b6Ae394B76DA230a03",
"0x5F85A0e9DD5Bd2F11a54b208427b286e9B0B519F",
"0x7F781d08FD165DBEE1D573Bdb79c43045442eac4",
"0x98bf67b6a03DA7AcF2Ee7348FdB3F9c96425a130");
console.log(x.toString("hex").substring(8));
0000000000000000000000000000000000000000000000000000000059e0e123
0000000000000000000000000000000000000000000000000000000059ea1ba3
000000000000000000000000000000000000000000000000000000000000125c
0000000000000000000000000b8e27013dfa822bf1cc01b6ae394b76da230a03
0000000000000000000000005f85a0e9dd5bd2f11a54b208427b286e9b0b519f
0000000000000000000000007f781d08fd165dbee1d573bdb79c43045442eac4
00000000000000000000000098bf67b6a03da7acf2ee7348fdb3f9c96425a130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment