Skip to content

Commit

Permalink
chore: update alloy (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto authored May 16, 2024
1 parent d5a1d14 commit 6be3b1d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
35 changes: 18 additions & 17 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ metal = { git = "https://github.com/gfx-rs/metal-rs", optional = true }

# evm related deps
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
alloy = { git = "https://github.com/alloy-rs/alloy", version = "0.1.0", features = ["provider-http", "signers", "contract", "rpc-types-eth", "signer-wallet", "node-bindings"] }
alloy = { git = "https://github.com/alloy-rs/alloy", version = "0.1.0", rev="5fbf57bac99edef9d8475190109a7ea9fb7e5e83", features = ["provider-http", "signers", "contract", "rpc-types-eth", "signer-wallet", "node-bindings"] }
foundry-compilers = {version = "0.4.1", features = ["svm-solc"]}
ethabi = "18"
indicatif = { version = "0.17.5", features = ["rayon"] }
Expand Down
5 changes: 2 additions & 3 deletions src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use alloy::providers::fillers::{
use alloy::providers::network::{Ethereum, EthereumSigner};
use alloy::providers::ProviderBuilder;
use alloy::providers::{Identity, Provider, RootProvider};
use alloy::rpc::types::eth::BlockId;
use alloy::rpc::types::eth::TransactionInput;
use alloy::rpc::types::eth::TransactionRequest;
use alloy::signers::wallet::LocalWallet;
Expand Down Expand Up @@ -591,7 +590,7 @@ pub async fn verify_proof_via_solidity(
return Err(Box::new(EvmVerificationError::InvalidProof));
}

let gas = client.estimate_gas(&tx, BlockId::default()).await?;
let gas = client.estimate_gas(&tx).await?;

info!("estimated verify gas cost: {:#?}", gas);

Expand Down Expand Up @@ -725,7 +724,7 @@ pub async fn verify_proof_with_data_attestation(
debug!("transaction {:#?}", tx);
info!(
"estimated verify gas cost: {:#?}",
client.estimate_gas(&tx, BlockId::default()).await?
client.estimate_gas(&tx).await?
);

let result = client.call(&tx).await;
Expand Down

0 comments on commit 6be3b1d

Please sign in to comment.