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: issue where could not handle missing memory #23

Merged
merged 3 commits into from
Nov 1, 2022

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Oct 31, 2022

What I did

ValidationError with missing memory.

How I did it

How to verify it

Checklist

  • Passes all linting checks (pre-commit and CI jobs)
  • New test cases have been added and are passing
  • Documentation has been updated
  • PR title follows Conventional Commit standard (will be automatically included in the changelog)

@@ -9,6 +9,11 @@ def test_trace_frame_validation_passes(trace_frame_data):
assert frame


def test_trace_no_memory():
raw_frame = {"pc": 0, "op": "PUSH1", "gas": 4732305, "gasCost": 3, "depth": 1, "stack": []}
Copy link
Member Author

Choose a reason for hiding this comment

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

I get this trace from calling this method: https://github.com/fubuloubu/ERC4626/blob/main/contracts/test/Token.vy#L68-L70

which must not use any memory?

Copy link
Member Author

Choose a reason for hiding this comment

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

I should add that I was using geth and not hardhat when doing this.

Copy link
Member

Choose a reason for hiding this comment

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

which must not use any memory?

It might not be

@antazoey antazoey requested a review from a user November 1, 2022 01:02
@antazoey antazoey merged commit 714918c into ApeWorX:main Nov 1, 2022
@antazoey antazoey deleted the fix/jules/memory branch November 1, 2022 14:53
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