This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 795
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prestwich
reviewed
Aug 20, 2020
gakonst
force-pushed
the
nonce-manager
branch
from
September 3, 2020 12:16
c5ec606
to
b3d0e0e
Compare
meetmangukiya
pushed a commit
to meetmangukiya/ethers-rs
that referenced
this pull request
Mar 21, 2022
* feat: create cheatcode module * feat import MemoryStackState from upstream * feat(memory-stack-state-owned): modify to own the backend type requires using our patch of the upstream evm until rust-ethereum/evm#62 is merged * feat(backend): add cheatcode backend (wrapper around backends) * feat(evm): generalize Sputnik's stack executor to trait This will allow us to instantiate the Sputnik EVM executor with a cheatcode-enabled one * feat(handler): add cheatcode handler to apply cheatcodes dynamically * feat(CheatcodeHandler): first pass at implementing SputnikExecutor * feat: import upstream transact_call * fix: modify transact_call to use newly exposed handler methods * feat: import upstream call_inner * fix: modify `call_inner` to use newly exposed handler methods * feat: enable cheatcode via Solidity * chore: cargo fmt * chore: remove unused tracing and dbg macros * feat: enable roll and warp cheatcodes * chore: upgrade ethers to allow short human readable function sigs * chore: cargo fmt * feat: add helper function for instantiating cheatcode evm * feat(cli): enable cheatcodes * chore: bump deps
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
It'd be nice if we had a way to sign multiple transactions locally and have the client auto-figure what the nonce for the transactions should be.
Solution
Override the default remote nonce logic with a locally managed one, falling back to the on-chain call if there's a nonce mismatch