ethereum-optimism / developers

This repository is to serve as a place where builders on every level of the OP Stack can come to collaborate.
Creative Commons Zero v1.0 Universal
73 stars 45 forks source link

Deploy Failed due to Exceeds Tx Fee #409

Closed yusufsuhair closed 2 months ago

yusufsuhair commented 6 months ago

Hi all,

I tried to deploy the L1 contracts using this command forge script scripts/Deploy.s.sol:Deploy --private-key $GS_ADMIN_PRIVATE_KEY --broadcast --rpc-url $L1_RPC_URL --slow .

But then, after transaction number 20, it failed due to the next deployment cost me 1.10 ether

## Sending transactions [20 - 20].

Transactions saved to: /root/optimism/packages/contracts-bedrock/broadcast/Deploy.s.sol/11155111/run-latest.json

Sensitive values saved to: /root/optimism/packages/contracts-bedrock/cache/Deploy.s.sol/11155111/run-latest.json

Error: Failed to send transaction

Context: - (code: -32000, message: tx fee (1.10 ether) exceeds the configured cap (1.00 ether), data: None)

so I tried again to redeploy, but it cannot continue from the previous giving this error instead:

== Logs == Connected to network with chainid 11155111 Storing temp deployment data in /root/optimism/packages/contracts-bedrock/deployments/getting-started/.deploy DeployConfig: reading file /root/optimism/packages/contracts-bedrock/deploy-config/getting-started.json Deploying from Deploy Deployment context: getting-started Deploying a fresh OP Stack including SuperchainConfig Deploying Safe New SystemOwnerSafe deployed at 0xb39fdb3F3E9D10f76AeF55dedb25ca19cdD6e7d6 Setting up Superchain Deploying AddressManager AddressManager deployed at 0x1005Ed3B73834005fca937cfA4Fbb90CDa2B326d Deploying ProxyAdmin ProxyAdmin deployed at 0xfA66E3850fa96996d30648c86C1Ea047beeC9598 ProxyAdmin ownership transferred to Safe at: 0xb39fdb3F3E9D10f76AeF55dedb25ca19cdD6e7d6 Deploying ERC1967 proxy forSuperchainConfigProxy at 0x2cCb8342Fb4F444269D96aBef291Db3c7b83A0A9 Error: script failed: <empty revert data>

How can I fix this, few months ago it was fine.

Should I change the RPC ?

Currency I'm using this config inside .envrc:

export L1_RPC_KIND=any export L1_RPC_URL=https://rpc.sepolia.org

Please help.