Skip to content

Commit

Permalink
chore: use GasOracle before the GasEscalator middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-savu committed Nov 8, 2024
1 parent ba6df0c commit 2cd1010
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
20 changes: 10 additions & 10 deletions rust/main/Cargo.lock

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

10 changes: 5 additions & 5 deletions rust/main/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,27 +211,27 @@ overflow-checks = true
[workspace.dependencies.ethers]
features = []
git = "https://github.com/hyperlane-xyz/ethers-rs"
tag = "2024-11-07-2"
tag = "2024-11-08"

[workspace.dependencies.ethers-contract]
features = ["legacy"]
git = "https://github.com/hyperlane-xyz/ethers-rs"
tag = "2024-11-07-2"
tag = "2024-11-08"

[workspace.dependencies.ethers-core]
features = []
git = "https://github.com/hyperlane-xyz/ethers-rs"
tag = "2024-11-07-2"
tag = "2024-11-08"

[workspace.dependencies.ethers-providers]
features = []
git = "https://github.com/hyperlane-xyz/ethers-rs"
tag = "2024-11-07-2"
tag = "2024-11-08"

[workspace.dependencies.ethers-signers]
features = ["aws"]
git = "https://github.com/hyperlane-xyz/ethers-rs"
tag = "2024-11-07-2"
tag = "2024-11-08"

[patch.crates-io.curve25519-dalek]
branch = "v3.2.2-relax-zeroize"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,7 @@ pub trait BuildableWithProvider {
where
P: JsonRpcClient + 'static,
{
let provider = wrap_with_gas_oracle(Provider::new(client), locator.domain)?;
self.build_with_signer(provider, conn, locator, signer)
self.build_with_signer(Provider::new(client), conn, locator, signer)
.await
}

Expand All @@ -223,8 +222,9 @@ pub trait BuildableWithProvider {
.await
.map_err(ChainCommunicationError::from_other)?;
let gas_escalator_provider = wrap_with_gas_escalator(signing_provider);
let gas_oracle_provider = wrap_with_gas_oracle(gas_escalator_provider, locator.domain)?;
let nonce_manager_provider =
wrap_with_nonce_manager(gas_escalator_provider, signer.address())
wrap_with_nonce_manager(gas_oracle_provider, signer.address())
.await
.map_err(ChainCommunicationError::from_other)?;

Expand Down

0 comments on commit 2cd1010

Please sign in to comment.