Skip to content

Commit

Permalink
Fix incorrect paths in sway-lib-std's context module
Browse files Browse the repository at this point in the history
Previously, these paths described a path from the root of the package,
however they are actually local to the module.
  • Loading branch information
mitchmindtree committed Apr 18, 2022
1 parent 5c3eaa4 commit 9f868bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sway-lib-std/src/context.sw
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ dep context/call_frames;
dep context/registers;

use ::contract_id::ContractId;
use ::call_frames::*;
use ::registers::balance;
use call_frames::*;
use registers::balance;

/// Get the balance of coin `asset_id` for the current contract.
pub fn this_balance(asset_id: ContractId) -> u64 {
Expand Down

0 comments on commit 9f868bb

Please sign in to comment.