diff --git a/mm2src/coins/nft/storage/wasm/wasm_storage.rs b/mm2src/coins/nft/storage/wasm/wasm_storage.rs index 12776b6307..77980b5b61 100644 --- a/mm2src/coins/nft/storage/wasm/wasm_storage.rs +++ b/mm2src/coins/nft/storage/wasm/wasm_storage.rs @@ -591,7 +591,7 @@ impl NftTransferHistoryStorageOps for NftCacheIDBLocked<'_> { .map(|(_item_id, item)| transfer_details_from_item(item)) .collect(); let transfers = transfers?; - log!("transfers {:?}", transfers); + log!("log transfers {:?}", transfers); for mut transfer in transfers { transfer.token_uri = transfer_meta.token_uri.clone(); @@ -609,10 +609,10 @@ impl NftTransferHistoryStorageOps for NftCacheIDBLocked<'_> { .with_value(&chain_str)? .with_value(&transfer.common.transaction_hash)? .with_value(transfer.common.log_index)? - .with_value(transfer.token_id.clone())?; + .with_value(BeBigUint::from(transfer.token_id.clone()))?; let item = NftTransferHistoryTable::from_transfer_history(&transfer)?; - log!("item {:?}", item); + log!("log item {:?}", item); table.replace_item_by_unique_multi_index(index_keys, &item).await?; } Ok(()) @@ -700,7 +700,7 @@ impl NftTransferHistoryStorageOps for NftCacheIDBLocked<'_> { .with_value(&chain_str)? .with_value(&transfer.common.transaction_hash)? .with_value(transfer.common.log_index)? - .with_value(transfer.token_id.clone())?; + .with_value(BeBigUint::from(transfer.token_id.clone()))?; let item = NftTransferHistoryTable::from_transfer_history(&transfer)?; table.replace_item_by_unique_multi_index(index_keys, &item).await?; @@ -787,7 +787,7 @@ async fn update_transfer_phishing_for_index( .with_value(chain)? .with_value(&transfer.common.transaction_hash)? .with_value(transfer.common.log_index)? - .with_value(transfer.token_id)?; + .with_value(BeBigUint::from(transfer.token_id))?; table .replace_item_by_unique_multi_index(index_keys, &transfer_item) .await?;