Skip to content

Commit

Permalink
fix(fortuna): Fix eip1559 detection (#1598)
Browse files Browse the repository at this point in the history
  • Loading branch information
m30m authored May 23, 2024
1 parent 1e25f3f commit df708af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/fortuna/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/fortuna/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fortuna"
version = "5.4.1"
version = "5.4.2"
edition = "2021"

[dependencies]
Expand Down
1 change: 0 additions & 1 deletion apps/fortuna/config.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ chains:
geth_rpc_addr: https://replicator.pegasus.lightlink.io/rpc/v1
contract_addr: 0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a
reveal_delay_blocks: 0
legacy_tx: true
gas_limit: 500000
3 changes: 2 additions & 1 deletion apps/fortuna/src/chain/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ impl SignablePythContract {
.await?
.ok_or_else(|| anyhow!("Latest block not found"))?
.base_fee_per_gas
.is_some();
.unwrap_or(U256::zero())
.is_zero(); // sei testnet returns 0 instead of None
let gas_oracle = EthProviderOracle::new(provider.clone());
let transformer = LegacyTxTransformer {
use_legacy_tx: !eip1559_supported,
Expand Down

0 comments on commit df708af

Please sign in to comment.