How to convert ContractId to AssetId and AssetId to ContractId?

how to convert ContractId to AssetId and AssetId to ContractId?

You can see an example here: Converting native types - The Fuel Rust SDK

Good, but how to convert asset id to contract id?

You can use the same format, like this:

let new_contract_id = ContractId::new(*asset_id);

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.