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

bug: Error intrinsic gas too low when deploying contract on Plume Devnet (Arbitrum configuration) #9619

Open
1 of 2 tasks
live9369 opened this issue Jan 3, 2025 · 4 comments
Assignees
Labels
A-dependencies Area: dependencies T-bug Type: bug

Comments

@live9369
Copy link

live9369 commented Jan 3, 2025

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

0.2.0

What command(s) is the bug in?

forge script script/Counter.s.sol:CounterScript --rpc-url $RPC --private-key $PRIVATE_KEY --broadcast

Operating System

Linux

Describe the bug

[⠊] Compiling...
No files changed, compilation skipped
Script ran successfully.

## Setting up 1 EVM.

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

Chain 98864

Estimated gas price: 0.020000001 gwei

Estimated total gas used for script: 548895

Estimated amount required: 0.000010977900548895 ETH

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

Transactions saved to: /home/live/chainopera/t_foundry/broadcast/Counter.s.sol/98864/run-latest.json

Sensitive values saved to: /home/live/chainopera/t_foundry/cache/Counter.s.sol/98864/run-latest.json

Error: Failed to send transaction

Context:
- server returned an error response: error code -32000: intrinsic gas too low
@live9369 live9369 added T-bug Type: bug T-needs-triage Type: this issue needs to be labelled labels Jan 3, 2025
@github-project-automation github-project-automation bot moved this to Todo in Foundry Jan 3, 2025
@zerosnacks
Copy link
Member

Likely related to Plume having an Arbitrum configuration and therefore requiring a different gas calculation

/// True if the network calculates gas costs differently.
pub fn has_different_gas_calc(chain_id: u64) -> bool {
if let Some(chain) = Chain::from(chain_id).named() {
return chain.is_arbitrum() ||
matches!(
chain,
NamedChain::Acala |
NamedChain::AcalaMandalaTestnet |
NamedChain::AcalaTestnet |
NamedChain::Etherlink |
NamedChain::EtherlinkTestnet |
NamedChain::Karura |
NamedChain::KaruraTestnet |
NamedChain::Mantle |
NamedChain::MantleSepolia |
NamedChain::MantleTestnet |
NamedChain::Moonbase |
NamedChain::Moonbeam |
NamedChain::MoonbeamDev |
NamedChain::Moonriver
);
}
false
}

Plume also needs to be added to https://github.com/alloy-rs/chains

@zerosnacks zerosnacks added T-chore Type: chore A-dependencies Area: dependencies and removed T-needs-triage Type: this issue needs to be labelled T-chore Type: chore labels Jan 3, 2025
@zerosnacks zerosnacks changed the title Error intrinsic gas too low when deploying contract on Plume Devnet bug: Error intrinsic gas too low when deploying contract on Plume Devnet (Arbitrum configuration) Jan 3, 2025
@live9369
Copy link
Author

live9369 commented Jan 3, 2025

@zerosnacks Hi, what needs to be done now?

@zerosnacks
Copy link
Member

zerosnacks commented Jan 3, 2025

@zerosnacks Hi, what needs to be done now?

Is there a bridge available for bridging from Sepolia to Plume Devnet?

The Plume team will need to check alloy-rs/chains@main...zerosnacks/add-plume for correctness and / or submit a PR

Once it is added as a chain we can add it in the check above which will query the RPC for the gas calculation

@zerosnacks zerosnacks self-assigned this Jan 3, 2025
@chingfeng2021
Copy link

there is a bridge: https://plume-testnet-m8kfz7osif-fbc24081e9bf0dcf.testnets.rollbridge.app/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dependencies Area: dependencies T-bug Type: bug
Projects
Status: Todo
Development

No branches or pull requests

3 participants