Skip to content

Commit

Permalink
fix(fortuna): missed a ! on the logic for eip1559 (#1600)
Browse files Browse the repository at this point in the history
  • Loading branch information
m30m authored May 23, 2024
1 parent df708af commit 12730ca
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.2"
version = "5.4.3"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion apps/fortuna/src/chain/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl SignablePythContract {
) -> Result<SignablePythContract> {
let provider = Provider::<Http>::try_from(&chain_config.geth_rpc_addr)?;
let chain_id = provider.get_chainid().await?;
let eip1559_supported = provider
let eip1559_supported = !provider
.get_block(ethers::prelude::BlockNumber::Latest)
.await?
.ok_or_else(|| anyhow!("Latest block not found"))?
Expand Down
2 changes: 1 addition & 1 deletion apps/fortuna/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl PebbleHashChain {
chain_length: u64,
) -> Result<Self> {
let mut input: Vec<u8> = vec![];
input.extend_from_slice(&hex::decode(secret)?);
input.extend_from_slice(&hex::decode(secret.trim())?);
input.extend_from_slice(&chain_id.as_bytes());
input.extend_from_slice(&provider_address.as_bytes());
input.extend_from_slice(&contract_address.as_bytes());
Expand Down

0 comments on commit 12730ca

Please sign in to comment.