How to get base asset using Rust SDK??
#[tokio::test]
async fn test_harness() {
// Test code here
let (instance, _id,wallets) = get_contract_instance().await;
let wallet_1 = wallets.get(0).unwrap();
let result= instance.methods().deposit().add_custom_asset(
AssetId::base(),
1,
Some(wallet_1.clone()),
)
.call().await.unwrap().value;
let result2 = instance.methods().test_deposit_asset_id_same_generated().call().await.unwrap().value;
assert_eq!(result, result2);
}
This is the error:
error[E0599]: no function or associated item named `base` found for struct `fuels::types::AssetId` in the current scope
--> tests/harness.rs:12:18
|
12 | AssetId::base(),
| ^^^^ function or associated item not found in `AssetId`