Skip to content

Commit

Permalink
fix in balance
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmannjan committed May 3, 2024
1 parent fd8a1c1 commit 7143960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/src/system/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub trait Mint: RuntimeProvider + StorageProvider + SystemProvider {
return Err(Error::ForgedReference);
}

let source_balance: U512 = match self.balance(purse, HoldsEpoch::NOT_APPLICABLE)? {
let source_balance: U512 = match self.balance(purse)? {
Some(source_balance) => source_balance,
None => return Err(Error::PurseNotFound),
};
Expand Down

0 comments on commit 7143960

Please sign in to comment.