Trait fuel_tx::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§
sourcefn asset_id(&self, sub_id: &Bytes32) -> AssetId
fn asset_id(&self, sub_id: &Bytes32) -> AssetId
Creates an AssetId
from the ContractId
and sub_id
.
sourcefn default_asset(&self) -> AssetId
fn default_asset(&self) -> AssetId
Creates an AssetId
from the ContractId
and the default 0x00..000 sub_id
.