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§