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

Commits on Aug 27, 2024

  1. fix: changed evm_setNextBlockTimestamp (#321)

    * 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
    vbar authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    b50fcd1 View commit details
    Browse the repository at this point in the history
  2. fix: returning errors from fork handling (#335)

    * 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>
    vbar and AnastasiiaVashchuk authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    c797d5f View commit details
    Browse the repository at this point in the history
  3. feat: anvil API (#313)

    * 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>
    vbar and AnastasiiaVashchuk authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    706d726 View commit details
    Browse the repository at this point in the history
  4. test: Add test for hardhat_reset (#333)

    * add test and do follow up fixes
    
    * run lint
    
    * fix nits
    AnastasiiaVashchuk authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    cda3821 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. fix: Update gas estimation logic for forks (#339)

    * fix: fork gas estimation
    
    * Additional fixes
    MexicanAce authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    9e8e0e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f6653c View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Configuration menu
    Copy the full SHA
    f8f1881 View commit details
    Browse the repository at this point in the history
  2. test: fix unit tests

    vasyl-ivanchuk committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    f11f41e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6159fe6 View commit details
    Browse the repository at this point in the history