Skip to content

Commit

Permalink
Disable OptionalAccount::balance for non-sync context
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed Sep 25, 2023
1 parent ca9b006 commit 9d21639
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models/account/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ impl OptionalAccount {
}

/// Account balance for all currencies.
#[cfg(feature = "sync")]
pub fn balance(&self) -> &CurrencyCollection {
static DEFAULT_VALANCE: CurrencyCollection = CurrencyCollection::ZERO;

Expand Down

0 comments on commit 9d21639

Please sign in to comment.