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

feat: added support for call value #142

Merged
merged 2 commits into from
Jul 17, 2022
Merged

feat: added support for call value #142

merged 2 commits into from
Jul 17, 2022

Conversation

0xGorilla
Copy link
Member

Description
Adds full support for call msg.value, see changed documentation in order to see new implemented methods

Metadata

it('should handle msg.value', async () => {
const value = BigNumber.from(123);
await fake.connect(signer).receiveEmpty({ value });
expect(fake.receiveEmpty.getCall(0).value).to.eq(value);
Copy link
Member

Choose a reason for hiding this comment

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

why are we not using expect before?

Copy link
Member Author

Choose a reason for hiding this comment

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

using should now

Copy link
Member

@wei3erHase wei3erHase left a comment

Choose a reason for hiding this comment

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

looks great pal!
made some questions but ready to go 🚀

@0xGorilla 0xGorilla merged commit 3c2b80b into dev Jul 17, 2022
@0xGorilla 0xGorilla deleted the feat/msg-value branch July 17, 2022 17:26
0xGorilla added a commit that referenced this pull request Sep 8, 2022
* feat: added support for call value (#142)
* feat: arrays support for setVariable (#144)
* feat: update ethereumjs vm and hardhat (#155)

Co-authored-by: 0xOneTony <[email protected]>
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.

feat request: add reading calls msg data and value
2 participants