1+ #[ cfg( not( target_arch = "wasm32" ) ) ]
12use crate :: eth:: EthTxFeeDetails ;
23use crate :: nft:: nft_structs:: {
34 Chain , Nft , NftList , NftListFilters , NftTokenAddrId , NftTransferHistory , NftTransferHistoryFilters ,
@@ -7,7 +8,10 @@ use async_trait::async_trait;
78use ethereum_types:: Address ;
89use mm2_err_handle:: mm_error:: MmResult ;
910use mm2_err_handle:: mm_error:: NotMmError ;
10- use mm2_number:: { BigDecimal , BigUint } ;
11+ #[ cfg( not( target_arch = "wasm32" ) ) ]
12+ use mm2_number:: BigDecimal ;
13+ use mm2_number:: BigUint ;
14+ #[ cfg( not( target_arch = "wasm32" ) ) ]
1115use serde:: { Deserialize , Serialize } ;
1216use std:: collections:: HashSet ;
1317use std:: num:: NonZeroUsize ;
@@ -231,6 +235,7 @@ fn get_offset_limit(max: bool, limit: usize, page_number: Option<NonZeroUsize>,
231235
232236/// `NftDetailsJson` structure contains immutable parameters that are not needed for queries.
233237/// This is what `details_json` string contains in db table.
238+ #[ cfg( not( target_arch = "wasm32" ) ) ]
234239#[ derive( Clone , Debug , Default , Deserialize , Serialize ) ]
235240pub ( crate ) struct NftDetailsJson {
236241 pub ( crate ) owner_of : Address ,
@@ -241,6 +246,7 @@ pub(crate) struct NftDetailsJson {
241246
242247/// `TransferDetailsJson` structure contains immutable parameters that are not needed for queries.
243248/// This is what `details_json` string contains in db table.
249+ #[ cfg( not( target_arch = "wasm32" ) ) ]
244250#[ derive( Clone , Debug , Default , Deserialize , Serialize ) ]
245251pub ( crate ) struct TransferDetailsJson {
246252 pub ( crate ) block_hash : Option < String > ,
0 commit comments