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 request: add reading calls msg data and value #114

Closed
hickscorp opened this issue May 12, 2022 · 3 comments · Fixed by #142
Closed

feat request: add reading calls msg data and value #114

hickscorp opened this issue May 12, 2022 · 3 comments · Fixed by #142

Comments

@hickscorp
Copy link

It'd be great to know when a mock is called, what was the raw shape of the msg structure.
In our case, we need to check that a payable function was called with the correct amount of funds.

@wei3erHase wei3erHase changed the title Payable Stuff feat request: add reading calls msg data and value Jun 17, 2022
@sraver
Copy link

sraver commented Jul 16, 2022

Same here, I'm trying to test a contract that sends assets to another, and depending if the token is ERC20 or native coin I need to check the value to see if it's correct. I didn't find a way to do it :/

@0xGorilla
Copy link
Member

Could you guys read the PR I just linked and tell me what you think? Does that solve the issue?

@sraver
Copy link

sraver commented Jul 16, 2022

@0xGorilla that looks indeed amazing!

Thanks for solving this 🙏

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 a pull request may close this issue.

3 participants