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

chore: fix tests after the gas changes #341

Merged

Conversation

vasyl-ivanchuk
Copy link
Contributor

What 💻

Fix tests after gas change

Why ✋

Because 30 tests fail

vbar and others added 7 commits August 27, 2024 16:15
* changed evm_setNextBlockTimestamp argument type to U64

* fixed caller of evm_setNextBlockTimestamp

* setting the timestamp of the next block in evm_setNextBlockTimestamp

* formatted

* updated comment
* not panicking in is_write_initial_internal

* not panicking in fork_network_and_client

* not panicking in get_earlier_transactions_in_same_block

* not panicking in get_block_gas_details

* Update src/fork.rs

Co-authored-by: AnastasiiaVashchuk <72273339+AnastasiiaVashchuk@users.noreply.github.com>

* more specific error message

* more specific error message

* added miniblock number to error message

---------

Co-authored-by: AnastasiiaVashchuk <72273339+AnastasiiaVashchuk@users.noreply.github.com>
* added evm_setAccountNonce alias

* added anvil_setNonce alias

* added anvil_impersonateAccount & anvil_stopImpersonatingAccount aliases

* added anvil_mine alias

* added anvil_reset alias

* added anvil_setBalance alias

* added anvil_setCode alias

* added anvil_setStorageAt alias

* added anvil_* aliases

* added anvil_mine test

* modified hardhat_impersonateAccount & hardhat_stopImpersonatingAccount
to actually call hardhat_stopImpersonatingAccount, interfere less
with other tests

* added anvil_impersonateAccount & anvil_stopImpersonatingAccount test

* added anvil_setCode test

* added hardhat_setStorageAt and anvil_setStorageAt tests

* formatted

* removed links to anvil namespace

* split tables

* Revert "split tables"

This reverts commit 4a54fe8.

* renamed AnvilNamespaceT::hardhat_mine to anvil_mine

* Update SUPPORTED_APIS.md

Co-authored-by: AnastasiiaVashchuk <72273339+AnastasiiaVashchuk@users.noreply.github.com>

* added section for evm_setAccountNonce

* changed var to let to satisfy linter

* using random address in anvil_setCode test

* added semicolon

* named test account address

* changed var to let to satisfy linter

* Update src/namespaces/anvil.rs

Co-authored-by: AnastasiiaVashchuk <72273339+AnastasiiaVashchuk@users.noreply.github.com>

* removed to.be.within checks

* supressing TypeScript errors

* supressing TypeScript errors

* changed anvil_setCode code type

* using find instead of an explicit loop

---------

Co-authored-by: AnastasiiaVashchuk <72273339+AnastasiiaVashchuk@users.noreply.github.com>
* add test and do follow up fixes

* run lint

* fix nits
* fix: fork gas estimation

* Additional fixes
@vasyl-ivanchuk vasyl-ivanchuk requested a review from a team as a code owner September 9, 2024 12:19
Copy link
Collaborator

@MexicanAce MexicanAce left a comment

Choose a reason for hiding this comment

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

LGTM

@vasyl-ivanchuk vasyl-ivanchuk merged commit dfd9aa1 into change-default-gas-values Sep 9, 2024
3 checks passed
@vasyl-ivanchuk vasyl-ivanchuk deleted the fix-tests-after-gas-changes branch September 9, 2024 16:01
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.

4 participants