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/consume gas #11

Merged
merged 4 commits into from
Jul 6, 2022
Merged

Feat/consume gas #11

merged 4 commits into from
Jul 6, 2022

Conversation

cleanunicorn
Copy link
Owner

Description

Implements new methods to make the provider consume all the provided gas:

  • givenSelectorConsumeGas(bytes4 selector_)
  • givenQueryConsumeGas(bytes memory query_)

Uses a trick from Gnosis mock provider that makes an expensive call until it runs out of gas.

Does not break existing functionality.

Issues

Todo

  • Link issues
  • Link projects
  • Update tests
  • Update code
  • Comment code
  • Test locally
  • Update changelog

@cleanunicorn cleanunicorn merged commit 16367a6 into master Jul 6, 2022
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.

Support out of gas execution
1 participant