Skip to content

Commit 410e2c7

Browse files
Bump the version of alloy in order to address the getrandom problem. (#3764)
## Motivation It has emerged that the `alloy` depends on `getrandom` that causes some compilation problems under Wasm. ## Proposal The following was done: * Switch the version of `alloy-sol-types` to 1.0.0 which address the problem. * Switch from `alloy` to `alloy-primitives` at version 1.0.0 so as to reduce the dependencies. ## Test Plan The CI. ## Release Plan Normal release process. ## Links None.
1 parent 5e1da03 commit 410e2c7

File tree

10 files changed

+734
-343
lines changed

10 files changed

+734
-343
lines changed

Cargo.lock

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

examples/Cargo.lock

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

examples/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ members = [
2121
]
2222

2323
[workspace.dependencies]
24-
alloy = { version = "0.9.2", default-features = false }
25-
alloy-sol-types = "0.8.18"
24+
alloy-primitives = { version = "1.0.0", default-features = false }
25+
alloy-sol-types = { version = "1.0.0", default-features = false }
2626
anyhow = "1.0.80"
2727
assert_matches = "1.5.0"
2828
async-graphql = { version = "=7.0.2", default-features = false }

examples/call-evm-counter/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@ authors = ["Linera <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
alloy = { workspace = true, default-features = false, features = [
9-
"rpc-types-eth",
10-
] }
8+
alloy-primitives.workspace = true
119
alloy-sol-types.workspace = true
1210
linera-sdk.workspace = true
1311
serde.workspace = true
1412

15-
1613
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
1714
linera-sdk = { workspace = true, features = ["test", "wasmer"] }
1815
tokio = { workspace = true, features = ["rt", "sync"] }

examples/call-evm-counter/src/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#![cfg_attr(target_arch = "wasm32", no_main)]
55

6-
use alloy::primitives::U256;
6+
use alloy_primitives::U256;
77
use alloy_sol_types::{sol, SolCall};
88
use call_evm_counter::{CallCounterAbi, CallCounterOperation};
99
use linera_sdk::{

examples/call-evm-counter/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use std::sync::Arc;
77

8-
use alloy::primitives::U256;
8+
use alloy_primitives::U256;
99
use alloy_sol_types::{sol, SolCall};
1010
use call_evm_counter::{CallCounterOperation, CallCounterRequest};
1111
use linera_sdk::{

examples/ethereum-tracker/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ authors = ["Linera <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
alloy = { workspace = true, default-features = false, features = [
9-
"rpc-types-eth",
10-
] }
8+
alloy-primitives.workspace = true
119
async-graphql.workspace = true
1210
linera-sdk = { workspace = true, features = ["ethereum"] }
1311
serde.workspace = true

examples/ethereum-tracker/src/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
mod state;
77

8-
use alloy::primitives::U256;
8+
use alloy_primitives::U256;
99
use ethereum_tracker::{EthereumTrackerAbi, InstantiationArgument};
1010
use linera_sdk::{
1111
linera_base_types::WithContractAbi,

examples/ethereum-tracker/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A Linera application that reads events emitted by the `simple_token.sol` example
77
consume information generated by EVM contracts on Ethereum.
88
*/
99

10-
use alloy::primitives::U256;
10+
use alloy_primitives::U256;
1111
use async_graphql::{scalar, Request, Response, SimpleObject};
1212
use linera_sdk::{
1313
graphql::GraphQLMutationRoot,

examples/ethereum-tracker/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mod state;
77

88
use std::sync::Arc;
99

10-
use alloy::primitives::U256;
10+
use alloy_primitives::U256;
1111
use async_graphql::{EmptySubscription, Request, Response, Schema};
1212
use ethereum_tracker::Operation;
1313
use linera_sdk::{

0 commit comments

Comments
 (0)