We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
funcSig
uint
There is an invalid hash of signature function calculation for uint types.
The next function has a signature provideAccess(address[],uint256[],bytes32,bytes)
provideAccess(address[],uint256[],bytes32,bytes)
function provideAccess(address[] _addresses, uint[] _amounts, bytes32 _key, bytes _info) public { // ... }
Then it should have the next hash:
> require("web3-utils").soliditySha3("provideAccess(address[],uint256[],bytes32,bytes)").slice(0, 10) '0x745ca7ea'
but funcSig command returns like:
> require("web3-utils").soliditySha3("provideAccess(address[],uint[],bytes32,bytes)").slice(0, 10) '0xb196df14'
The text was updated successfully, but these errors were encountered:
uint256
thank you @alesanro! going to merge it in a second and also fix that functions w/o arguments are actually missing (plus other canonicalisation). 👍
Sorry, something went wrong.
fix canonicalization for funcsig calculation #27
2066501
- this is still a hack that we will replace with properly an AST based version - will also show internal/private functions. ignore them for now :)
fix canonicalization for funcsig calculation Consensys#27
fc20171
Successfully merging a pull request may close this issue.
There is an invalid hash of signature function calculation for
uint
types.The next function has a signature
provideAccess(address[],uint256[],bytes32,bytes)
Then it should have the next hash:
but
funcSig
command returns like:The text was updated successfully, but these errors were encountered: