-
Notifications
You must be signed in to change notification settings - Fork 3
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: add eth fees in flow functions #348
Conversation
test: update tests accordingly
3364f35
to
4794aa4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Andrei.
Good idea to write concrete tests, but it's overkill to test these things:
- it should update the caller ETH balance
- it should update the flow contract ETH balance
Just having the call compiling with the { value }
option would be enough. We are not meant to test that the EVM is implemented correctly.
So let's please simplify those tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR should be created against a new branch called staging
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I accidentally clicked submit review. Here is full review.
thanks. fair enough, let's remove them. also, does it mean we should remove the |
21ac526
to
18aec2c
Compare
@PaulRBerg @smol-ninja updated the branch with your feedback, lmk if it looks good |
18aec2c
to
6b650e8
Compare
Signed-off-by: smol-ninja <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
* feat: add eth fees in flow functions test: update tests accordingly * test: add concrete tests for payable functions * address feedback * chore: remove redundant function Signed-off-by: smol-ninja <[email protected]> --------- Signed-off-by: smol-ninja <[email protected]> Co-authored-by: smol-ninja <[email protected]>
* feat: add eth fees in flow functions test: update tests accordingly * test: add concrete tests for payable functions * address feedback * chore: remove redundant function Signed-off-by: smol-ninja <[email protected]> --------- Signed-off-by: smol-ninja <[email protected]> Co-authored-by: smol-ninja <[email protected]>
Closes #328
Note: Added concrete tests for this to ensure that we don't miss marking a function as
payable