Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CjS77 committed Nov 21, 2023
1 parent 242c535 commit ab30345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/sdm-launchpad/tests/test_mining.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl TestState {
.as_ref()
.and_then(|state| state.wallet.balance.as_ref());
if let Some(balance) = balance {
self.initial_funds = balance.available;
self.initial_funds = balance.available.as_u64();
true
} else {
false
Expand All @@ -155,7 +155,7 @@ impl TestState {
.state
.as_ref()
.and_then(|state| state.wallet.balance.as_ref())
.map(|balance| balance.available > self.initial_funds)
.map(|balance| balance.available.as_u64() > self.initial_funds)
.unwrap_or_default()
}
}

0 comments on commit ab30345

Please sign in to comment.