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

Optimism deployment transaction "dropped" from mempool #800

Closed
pegahcarter opened this issue Feb 4, 2023 · 1 comment
Closed

Optimism deployment transaction "dropped" from mempool #800

pegahcarter opened this issue Feb 4, 2023 · 1 comment

Comments

@pegahcarter
Copy link

I am having issues running a Script which deploys multiple contracts to Optimism Goerli where after the first contract is deployed, I get:

$ forge script script/v1/Deploy.s.sol:Deploy --rpc-url $GOERLI_RPC_URL --broadcast --slow
warning: Unknown section [default] found in foundry.toml. This notation for profiles has been deprecated and may result in the profile not being registered in future versions. Please use [profile.default] instead or run `forge config --fix`.
[⠆] Compiling...
No files changed, compilation skipped
Script ran successfully.

## Setting up (1) EVMs.

==========================

Chain 420

Estimated total gas used for script: 41805829

Estimated amount required: 0.062708745548485621 ETH

==========================

###
Finding wallets for all the necessary addresses...
##
Sending transactions [0 - 22].
⠁ [00:00:00] [####>------------------------------------------------------------------------------------------------------] 1/23 txes (17.3s)
Transactions saved to: /home/carter/Documents/velodrome/contracts-private/broadcast/Deploy.s.sol/420/run-latest.json

Error: 
Transaction dropped from the mempool: 0x61e10f3d3f2d132501d9d10eb6be903da9b2569950cfddd3d9318f20f58a546c

Foundry is wrong - the contract was successfully deployed with that tx hash. Link

Here's an example snippet of the Deploy.s.sol:

contract Deploy is Script {
    uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
    function run() public {
        vm.startBroadcast(deployerPrivateKey);
        Contract1 contract1 = new Contract1();
        Contract2 contract2 = new Contract2();
    }
}

Is there an issue with the optimism sequencer where foundry incorrectly thinks a transaction has been dropped?

@pegahcarter
Copy link
Author

Figured out solution with updating foundry. See here

@github-project-automation github-project-automation bot moved this from Todo to Done in Foundry Book Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant