Skip to content

Commit f006d83

Browse files
committed
fix build error, bump ver
1 parent 1be0672 commit f006d83

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default-members = ["core"]
55

66
[workspace.package]
77
edition = "2021"
8-
version = "0.2.33"
8+
version = "0.2.34"
99
license = "Apache-2.0"
1010
readme = "README.md"
1111
authors = ["erhant"]

core/src/node/core.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
use super::{DriaOracle, DriaOracleConfig};
22
use alloy::contract::CallBuilder;
33
use alloy::hex::FromHex;
4-
use alloy::primitives::utils::parse_ether;
4+
5+
#[cfg(feature = "anvil")]
56
use alloy::providers::ext::AnvilApi;
7+
68
use alloy::providers::{PendingTransactionBuilder, WalletProvider};
79
use alloy::transports::RpcError;
810
use alloy::{
@@ -43,7 +45,7 @@ impl DriaOracle {
4345
provider
4446
.anvil_set_balance(
4547
config.wallet.default_signer().address(),
46-
parse_ether(Self::ANVIL_FUND_ETHER).unwrap(),
48+
alloy::primitives::utils::parse_ether(Self::ANVIL_FUND_ETHER).unwrap(),
4749
)
4850
.await?;
4951

0 commit comments

Comments
 (0)