Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (9b0575e 2022-08-04T00:04:53.139072Z)
What command(s) is the bug in?
forge script script/.s.sol --rpc-url https://eth.bd.evmos.dev:8545 --private-key --broadcast
Operating System
macOS (Apple Silicon)
Describe the bug
I recently tried to deploy my forge script to Evmos. It does work flawlessly on Goerli, but not on the Evmos chains. For the exact same command I get different errors:
forge script script/.s.sol --rpc-url https://eth.bd.evmos.dev:8545 --private-key --broadcast
The application panicked (crashed).
Message: Unable to create fork:
Failed to get block for block number: 4870151
latest block number: 4870151
Location: evm/src/executor/backend/mod.rs:287
No files changed, compilation skipped
The application panicked (crashed).
Message: Failed to get account for 0x0000…0002
ProviderError(JsonRpcError(JsonRpcError { code: -32000, message: "rpc error: code = Unknown desc = cannot query with height in the future; please provide a valid height: invalid height", data: None }))
Location: evm/src/executor/fork/backend.rs:271
Error:
ProviderError(JsonRpcError(JsonRpcError { code: -32000, message: "invalid nonce; got 49, expected 48: invalid sequence: invalid sequence", data: None }))
Workaround: Deploy the smart contracts manually which just worked fine.
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (9b0575e 2022-08-04T00:04:53.139072Z)
What command(s) is the bug in?
forge script script/.s.sol --rpc-url https://eth.bd.evmos.dev:8545 --private-key --broadcast
Operating System
macOS (Apple Silicon)
Describe the bug
I recently tried to deploy my forge script to Evmos. It does work flawlessly on Goerli, but not on the Evmos chains. For the exact same command I get different errors:
forge script script/.s.sol --rpc-url https://eth.bd.evmos.dev:8545 --private-key --broadcast
The application panicked (crashed).
Message: Unable to create fork:
Failed to get block for block number: 4870151
latest block number: 4870151
Location: evm/src/executor/backend/mod.rs:287
No files changed, compilation skipped
The application panicked (crashed).
Message: Failed to get account for 0x0000…0002
ProviderError(JsonRpcError(JsonRpcError { code: -32000, message: "rpc error: code = Unknown desc = cannot query with height in the future; please provide a valid height: invalid height", data: None }))
Location: evm/src/executor/fork/backend.rs:271
Error:
ProviderError(JsonRpcError(JsonRpcError { code: -32000, message: "invalid nonce; got 49, expected 48: invalid sequence: invalid sequence", data: None }))
Workaround: Deploy the smart contracts manually which just worked fine.