From f717583f5d75f3b58d3f95d990e7c82e171f85b0 Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Wed, 12 Feb 2020 17:40:37 +0800 Subject: [PATCH] fix warning in Kton testcase --- frame/balances/kton/src/mock.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frame/balances/kton/src/mock.rs b/frame/balances/kton/src/mock.rs index 38d6ff5ae..5c7288c8a 100644 --- a/frame/balances/kton/src/mock.rs +++ b/frame/balances/kton/src/mock.rs @@ -27,11 +27,6 @@ pub type System = system::Module; pub type Ring = ring::Module; pub type Kton = Module; -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 {} } @@ -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 @@ -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 {