fuel_tx

Trait ContractIdExt

Source
pub trait ContractIdExt {
    // Required methods
    fn asset_id(&self, sub_id: &Bytes32) -> AssetId;
    fn default_asset(&self) -> AssetId;
}
Expand description

Trait extends the functionality of the ContractId type.

Required Methods§

Source

fn asset_id(&self, sub_id: &Bytes32) -> AssetId

Creates an AssetId from the ContractId and sub_id.

Source

fn default_asset(&self) -> AssetId

Creates an AssetId from the ContractId and the default 0x00..000 sub_id.

Implementors§