diff --git a/ethers-solc/Cargo.toml b/ethers-solc/Cargo.toml index 296b002b..fbd7a592 100644 --- a/ethers-solc/Cargo.toml +++ b/ethers-solc/Cargo.toml @@ -35,9 +35,11 @@ tracing = "0.1.29" sha2 = { version = "0.9.8", default-features = false } [target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies] -home = "0.5.3" sha2 = { version = "0.9.8", default-features = false, features = ["asm"] } +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +home = "0.5.3" + [target.'cfg(target_arch = "wasm32")'.dependencies] # NOTE: this enables wasm compatibility for getrandom indirectly getrandom = { version = "0.2", features = ["js"] }