Skip to content

Commit

Permalink
fix warning in Kton testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
yanganto committed Feb 12, 2020
1 parent 96f7e40 commit f717583
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frame/balances/kton/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ pub type System = system::Module<Test>;
pub type Ring = ring::Module<Test>;
pub type Kton = Module<Test>;

pub const NANO: Balance = 1;
pub const MICRO: Balance = 1_000 * NANO;
pub const MILLI: Balance = 1_000 * MICRO;
pub const COIN: Balance = 1_000 * MILLI;

impl_outer_origin! {
pub enum Origin for Test {}
}
Expand Down Expand Up @@ -136,6 +131,7 @@ impl Default for ExtBuilder {
}
}
impl ExtBuilder {
#[allow(dead_code)]
pub fn existential_deposit(mut self, existential_deposit: Balance) -> Self {
self.existential_deposit = existential_deposit;
self
Expand All @@ -145,10 +141,12 @@ impl ExtBuilder {
self.transfer_fee = transfer_fee;
self
}
#[allow(dead_code)]
pub fn creation_fee(mut self, creation_fee: Balance) -> Self {
self.creation_fee = creation_fee;
self
}
#[allow(dead_code)]
pub fn monied(mut self, monied: bool) -> Self {
self.monied = monied;
if self.existential_deposit == 0 {
Expand Down

0 comments on commit f717583

Please sign in to comment.