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

Task: Godmode reverts on View/Pure functions #8

Open
martinetlee opened this issue Sep 27, 2020 · 1 comment
Open

Task: Godmode reverts on View/Pure functions #8

martinetlee opened this issue Sep 27, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@martinetlee
Copy link
Member

The library reverts on calling a view/pure function when using the executeAs.
This is likely because the storage is tainted by the putContract.
There might be two ways to resolve this:
(1) Send additional tx between the putContract and the execute, so that ganache thinks the state change is a separate tx from the view/pure function call.
(2) Modify the Godmode Ganache to make sure it will not flag the storage as being modified. (needs research time.)

@martinetlee martinetlee changed the title Task: Godmode doesn't handle View/Pure function properly Task: Godmode reverts on View/Pure functions Sep 27, 2020
@v-stickykeys v-stickykeys added the bug Something isn't working label Oct 18, 2020
@v-stickykeys
Copy link
Member

Not sure if this is still a problem.. let's check at some point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants