How to convert ContractId to AssetId in the rust SDK

Is there another way to convert ContractId to AssetId in the rust SDK?
AssetId::from_str(uni.contract_id.to_string().as_str()).unwrap()

1 Like

This question was answered in another post:

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