Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Fix wasm target compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
yorhodes committed Nov 27, 2023
1 parent 21cd2cb commit 0e57f5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ethers-middleware/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub use timelag::TimeLag;

/// The [MulticallMiddleware] provides a way to batch multiple calls into a single call
pub mod multicall;
#[cfg(not(target_arch = "wasm32"))]
pub use multicall::MulticallMiddleware;

/// [MiddlewareBuilder] provides a way to compose many [`Middleware`]s in a concise way.
Expand Down
2 changes: 2 additions & 0 deletions ethers-middleware/src/multicall.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(not(target_arch = "wasm32"))]

use std::{ops::Deref, sync::Arc};

use async_trait::async_trait;
Expand Down

0 comments on commit 0e57f5e

Please sign in to comment.