From cbe5eef648476e63908edfbe590d0083864f7188 Mon Sep 17 00:00:00 2001 From: Abhishek Shah Date: Sat, 6 Jan 2024 03:35:00 +0530 Subject: [PATCH] fix balance units in chain_spec.rs --- node/src/chain_spec.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index cd72fdb..96dda46 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -209,7 +209,7 @@ pub mod devnet { let alice = get_from_seed::("Alice"); let bob = get_from_seed::("Bob"); serde_json::json!( { - "balances": BalancesConfig { balances : endowed_accounts.iter().cloned().map(|k| (k, 1 << 60)).collect::>() }, + "balances": BalancesConfig { balances : endowed_accounts.iter().cloned().map(|k| (k, 1u128 << 60)).collect::>() }, // Configure two assets ALT1 & ALT2 with two owners, alice and bob respectively "assets": { "assets": vec![ @@ -396,7 +396,7 @@ pub mod mainnet { .cloned() // Fund sudo key for sending transactions .chain(std::iter::once(root_key.clone())) - .map(|k| (k, 1 << 60)) + .map(|k| (k, 1u128 << 60)) .collect::>(), }, // Configure two assets ALT1 & ALT2 with two owners, alice and bob respectively