Created
August 15, 2018 08:34
-
-
Save hewigovens/1271eaafca486ded86b5f6e6417c1b5c to your computer and use it in GitHub Desktop.
ethereumjs_abi_test.js
This file contains hidden or 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 ethUtil = require('ethereumjs-util'); | |
const abi = require('ethereumjs-abi'); | |
const result = abi.rawEncode(['bytes32'], ['bBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB']) | |
console.log(ethUtil.bufferToHex(result)); | |
//0x6242624242424262624242426262624262624262626262424262426262626242 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ABIEncoder.swift