Skip to content
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

fix: bug with usage of padNumHexSlotValue #161

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

0xOneTony
Copy link
Member

Description
In mappings using the function padNumHexSlotValue causes a bug on hashes of bytes32 as a key. We should be using the function padBytesHexSlotValue which is targeted for bytes values.

A different approach from #160 although it fixes the issue I believe that the usage of the padNumHexSlotValue is incorrectly when we deal with bytes type as key

@0xGorilla 0xGorilla merged commit 9cffea6 into defi-wonderland:dev Sep 28, 2022
0xGorilla added a commit that referenced this pull request Oct 21, 2022
* feat: added support for call value (#142)

Added functionality:
- `expect(myFake.myFunction).to.have.been.calledWithValue(1234);`
- `expect(myFake.myFunction.getCall(0).value).to.eq(1);`

* feat: arrays support for setVariable (#144)

* feat: update ethereumjs vm and hardhat (#155)

* fix: bug with usage of padNumHexSlotValue (#161)

Co-authored-by: 0xOneTony <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants