Skip to content

Commit

Permalink
Added const for base asset (#46)
Browse files Browse the repository at this point in the history
* Added const for base asset

* Move `BASE` to `AssetId`
  • Loading branch information
xgreenx committed Dec 20, 2022
1 parent b6aca0a commit cac2ce1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fuel-types/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,8 @@ impl ContractId {
/// <https:/FuelLabs/fuel-specs/blob/master/specs/protocol/identifiers.md#contract-id>
pub const SEED: [u8; 4] = 0x4655454C_u32.to_be_bytes();
}

impl AssetId {
/// The base native asset of the Fuel protocol.
pub const BASE: AssetId = AssetId::zeroed();
}

0 comments on commit cac2ce1

Please sign in to comment.