Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Rebase on master "solidity pack arrays" + fixes #82

Conversation

forshtat
Copy link
Contributor

@forshtat forshtat commented Aug 8, 2019

This is a PR #47 rebased on top of the current master branch with some minor changes to it.
@djrtwo @holgerd77 please review.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 90.634% when pulling 7a0ac94 on tabookey:rebase_master_solidityPack-arrays-27_tabookey_AUG2019 into 8431eab on ethereumjs:master.

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

return ABI.solidityHexValue(subType, v, 256)
})
return Buffer.concat(arrayValues)
} else if (type === 'bytes') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, did also some line-by-line review of the isArray part here and some manual tests. Since this is already some reviewed write-up of an existing PR and solid new tests are added and passing I think I can give this a go. Thanks @djrtwo for submitting and @alex-forshtat-tbk for putting this along the finish line. 😄

@holgerd77 holgerd77 merged commit d700d09 into ethereumjs:master Aug 11, 2019
@merlox
Copy link

merlox commented Aug 18, 2019

Thank you, I was banging my head against the keyboard trying to understand why hashing arrays wasn't working. I had to install this ethereumjs-abi library for it to work.
However it still doesn't work when running web3.utils.soliditySha3() nor with web3.utils.keccak256(). Do you guys know why is that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants