Sitelet https://github.com/SharkHand3/examples/commit/a2c02c7af1f61ed400aa2b429398cba751859cee
Skip to content

Commit a2c02c7

Browse files
authored
chore(deps): core 1.0 (alloy-rs#188)
* fix * fix * rm fork-db + reth-db example to compile * Revert "rm fork-db + reth-db example to compile" This reverts commit 7b7af79. * alloy 0.14
1 parent 66f5eed commit a2c02c7

20 files changed

Lines changed: 43 additions & 46 deletions

‎Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ significant_drop_tightening = "allow"
9595
needless_return = "allow"
9696

9797
[workspace.dependencies]
98-
alloy = { version = "0.12", features = [
98+
alloy = { version = "0.14", features = [
9999
"eips",
100100
"full",
101101
"hyper",
@@ -112,7 +112,7 @@ alloy = { version = "0.12", features = [
112112
"signer-trezor",
113113
"signer-yubihsm",
114114
] }
115-
foundry-fork-db = "0.12"
115+
116116

117117
# async
118118
futures-util = "0.3"

‎examples/advanced/Cargo.toml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ workspace = true
1414

1515
[dev-dependencies]
1616
alloy.workspace = true
17-
foundry-fork-db.workspace = true
17+
# foundry-fork-db = "0.12"
1818

19-
# reth
20-
revm-primitives = { version = "16.0.0-alpha.3", default-features = false }
21-
revm = { version = "20.0.0", default-features = false }
22-
reth-db = { git = "https://github.com/paradigmxyz/reth", package = "reth-db", rev = "v1.3.4" }
23-
reth-provider = { git = "https://github.com/paradigmxyz/reth", package = "reth-provider", rev = "v1.3.4" }
24-
reth-node-types = { git = "https://github.com/paradigmxyz/reth", package = "reth-node-types", rev = "v1.3.4" }
25-
reth-chainspec = { git = "https://github.com/paradigmxyz/reth", package = "reth-chainspec", rev = "v1.3.4" }
26-
reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth", package = "reth-node-ethereum", rev = "v1.3.4" }
19+
# # reth
20+
# revm-primitives = { version = "17.0.0", default-features = false }
21+
# revm = { version = "21.0.0", default-features = false }
22+
# reth-db = { git = "https://github.com/paradigmxyz/reth", package = "reth-db", rev = "v1.3.8" }
23+
# reth-provider = { git = "https://github.com/paradigmxyz/reth", package = "reth-provider", rev = "v1.3.8" }
24+
# reth-node-types = { git = "https://github.com/paradigmxyz/reth", package = "reth-node-types", rev = "v1.3.8" }
25+
# reth-chainspec = { git = "https://github.com/paradigmxyz/reth", package = "reth-chainspec", rev = "v1.3.8" }
26+
# reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth", package = "reth-node-ethereum", rev = "v1.3.8" }
2727

2828
eyre.workspace = true
2929
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

‎examples/contracts/examples/deploy_and_link_library.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async fn main() -> Result<()> {
7373
println!("Counter.incrementUntil(10) invoked!");
7474

7575
// Assert the counter value is as expected
76-
let number = counter.number().call().await?.number;
76+
let number = counter.number().call().await?;
7777
assert_eq!(number, U256::from(1));
7878
println!("Counter.number == 1 verified!");
7979

‎examples/contracts/examples/deploy_from_artifact.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async fn main() -> Result<()> {
4343
// return value must be accessed by index - as if it is an unnamed value.
4444
// If you prefer to use named return values, it is recommended to embed the Solidity code
4545
// directly in the `sol!` macro as shown in `deploy_from_contract.rs`.
46-
let number = builder.call().await?._0;
46+
let number = builder.call().await?;
4747

4848
println!("Retrieved number: {number}");
4949

‎examples/contracts/examples/deploy_from_bytecode.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async fn main() -> Result<()> {
6464

6565
// Retrieve the number, which should be 43.
6666
let builder = contract.number();
67-
let number = builder.call().await?.number.to_string();
67+
let number = builder.call().await?;
6868

6969
println!("Retrieved number: {number}");
7070

‎examples/contracts/examples/deploy_from_contract.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async fn main() -> Result<()> {
4646

4747
// Retrieve the number, which should be 43.
4848
let builder = contract.number();
49-
let number = builder.call().await?.number.to_string();
49+
let number = builder.call().await?;
5050

5151
println!("Retrieved number: {number}");
5252

‎examples/contracts/examples/interact_with_abi.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async fn main() -> Result<()> {
2323
let contract = IWETH9::new(address!("C02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"), provider);
2424

2525
// Call the contract, retrieve the total supply.
26-
let total_supply = contract.totalSupply().call().await?._0;
26+
let total_supply = contract.totalSupply().call().await?;
2727

2828
println!("WETH total supply is {total_supply}");
2929

‎examples/node-bindings/examples/anvil_deploy_contract.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async fn main() -> Result<()> {
4646

4747
// Retrieve the number, which should be 43.
4848
let builder = contract.number();
49-
let number = builder.call().await?.number.to_string();
49+
let number = builder.call().await?;
5050

5151
println!("Retrieved number: {number}");
5252

‎examples/node-bindings/examples/anvil_set_storage_at.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async fn main() -> Result<()> {
3232
let account = address!("F605F9d1cB055E87E30bcAEe4CB9389a35aBe8Ff");
3333

3434
// Get the WETH balance of the target account before mocking.
35-
let balance_before = iweth.balanceOf(account).call().await?._0;
35+
let balance_before = iweth.balanceOf(account).call().await?;
3636
println!("WETH balance before: {}", balance_before);
3737
assert_eq!(balance_before, U256::ZERO);
3838

@@ -42,7 +42,7 @@ async fn main() -> Result<()> {
4242
provider.anvil_set_storage_at(WETH_ADDR, hashed_slot.into(), mocked_balance.into()).await?;
4343

4444
// Get the WETH balance of the target account after mocking.
45-
let balance_after = iweth.balanceOf(account).call().await?._0;
45+
let balance_after = iweth.balanceOf(account).call().await?;
4646
println!("WETH balance after: {}", balance_after);
4747
assert_eq!(balance_after, mocked_balance);
4848

‎examples/providers/examples/dyn_provider.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async fn main() -> eyre::Result<()> {
5858

5959
let number = counter.number().call().await?;
6060

61-
println!("New number: {}", number.number);
61+
println!("New number: {}", number);
6262

6363
Ok(())
6464
}

0 commit comments

Comments
 (0)