pub trait AddressToAssetId<AssetId> {
// Required methods
fn address_to_asset_id(address: H160) -> Option<AssetId>;
fn asset_id_to_address(asset_id: AssetId) -> H160;
}
Expand description
This trait ensure we can convert EVM address to AssetIds We will require Runtime to have this trait implemented
Required Methods§
fn address_to_asset_id(address: H160) -> Option<AssetId>
fn asset_id_to_address(asset_id: AssetId) -> H160
Object Safety§
This trait is not object safe.