Skip to content

Commit

Permalink
fix balances tests (#141)
Browse files Browse the repository at this point in the history
fix balances tests
  • Loading branch information
AurevoirXavier authored Dec 5, 2019
2 parents 47444da + 7e94ff7 commit 4aad2f6
Show file tree
Hide file tree
Showing 3 changed files with 316 additions and 189 deletions.
2 changes: 2 additions & 0 deletions srml/balances/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ use support::{
};
use system::{ensure_root, ensure_signed, IsDeadAccount, OnNewAccount};

#[cfg(all(feature = "std", test))]
mod mock;
#[cfg(all(feature = "std", test))]
mod tests;

pub use self::imbalances::{NegativeImbalance, PositiveImbalance};
Expand Down
1 change: 1 addition & 0 deletions srml/balances/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ impl ExtBuilder {
}

pub type System = system::Module<Runtime>;
pub type Timestamp = timestamp::Module<Runtime>;
pub type Balances = Module<Runtime>;

pub const CALL: &<Runtime as system::Trait>::Call = &();
Expand Down
Loading

0 comments on commit 4aad2f6

Please sign in to comment.