Skip to content

Commit

Permalink
hotfix:complete param type changes (FuelLabs#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfurfaro authored Mar 21, 2022
1 parent 02452b8 commit 66e1be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context.sw
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ pub fn contract_id() -> ContractId {
/// Get the current contracts balance of coin `asset_id`
pub fn this_balance(asset_id: ContractId) -> u64 {
let this_id = contract_id();
asm(balance, token: asset_id, contract_id: this_id) {
asm(balance, token: asset_id.value, contract_id: this_id.value) {
bal balance token contract_id;
balance: u64
}
}

/// Get the balance of coin `asset_id` for any contract `contract_id`
pub fn balance_of_contract(asset_id: ContractId, contract_id: ContractId) -> u64 {
asm(balance, token: asset_id, contract: contract_id.value) {
asm(balance, token: asset_id.value, contract: contract_id.value) {
bal balance token contract;
balance: u64
}
Expand Down

0 comments on commit 66e1be0

Please sign in to comment.