-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
soliditySHA3 multiple bytes32 encoding issue #43
Comments
It works in code downloaded for the master. I think it might be a matter of releasing new version. Checked: The code on master and in latest version (0.6.4) differ in function |
Also confirming this issue, you must install from master for |
The issue is with any static bytes type, on the package published on npm. It has to do with the solidityPack function, which in the npm package does a return return utils.setLengthRight(value, size) while in this repo it seems fixed and actually pushes to the Requesting for an update also here |
Anyone can resolve that? |
pinging @axic |
We use web3js in beta: |
New npm release is out: https://www.npmjs.com/package/ethereumjs-abi Sorry for the delay, will close now. |
It seems soliditySHA3 does not handle properly case when multiple bytes32 are involved.
Steps to reproduce below:
abi.soliditySHA3([ "bytes32", "bytes32" ], [ "Volume", "Volume" ]).toString('hex');
returns:
8239dae94d559efaf979a8ffdb349ed1d13c6636d28ab641f43ae2bc0c0b985a
Yet,
coded() returns
0x7ab276f38b269dc879fb051ca72ac238c1a03c2db62bbd7a499c1dd822c3e020
The text was updated successfully, but these errors were encountered: