From 4bfd9155b1b4e95f0c74c37f08df26f7c8846243 Mon Sep 17 00:00:00 2001 From: PoisonPhang <17688291+PoisonPhang@users.noreply.github.com> Date: Mon, 24 Jan 2022 15:50:19 -0600 Subject: [PATCH 1/2] Added 'std' features to Balances --- frame/crowdloan-rewards/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frame/crowdloan-rewards/Cargo.toml b/frame/crowdloan-rewards/Cargo.toml index c9ac573167e..767e59cb5e2 100644 --- a/frame/crowdloan-rewards/Cargo.toml +++ b/frame/crowdloan-rewards/Cargo.toml @@ -23,7 +23,7 @@ libsecp256k1 = { version = "0.7.0", default-features = false, features = [ "static-context", ] } hex-literal = "0.3" -balances = { package = "pallet-balances", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13", default-features = false } +balances = { package = "pallet-balances", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13", default-features = false, features = [ "std" ]} [dependencies] ### Benchmarking @@ -32,7 +32,7 @@ libsecp256k1 = { version = "0.7.0", default-features = false, optional = true, f "hmac", "static-context", ] } -balances = { package = "pallet-balances", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13", default-features = false, optional = true } +balances = { package = "pallet-balances", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13", default-features = false, features = [ "std" ], optional = true } frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" } sp-application-crypto = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" } From ed0e6f51bb61fdc2388878ec8634796d98432221 Mon Sep 17 00:00:00 2001 From: PoisonPhang <17688291+PoisonPhang@users.noreply.github.com> Date: Wed, 26 Jan 2022 14:16:43 -0600 Subject: [PATCH 2/2] Removed Balances from build dep --- frame/crowdloan-rewards/Cargo.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/frame/crowdloan-rewards/Cargo.toml b/frame/crowdloan-rewards/Cargo.toml index 767e59cb5e2..6dce6408bc4 100644 --- a/frame/crowdloan-rewards/Cargo.toml +++ b/frame/crowdloan-rewards/Cargo.toml @@ -32,7 +32,6 @@ libsecp256k1 = { version = "0.7.0", default-features = false, optional = true, f "hmac", "static-context", ] } -balances = { package = "pallet-balances", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13", default-features = false, features = [ "std" ], optional = true } frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" } sp-application-crypto = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" } @@ -70,7 +69,6 @@ std = [ runtime-benchmarks = [ "hex-literal", "libsecp256k1", - "balances", "frame-benchmarking", "sp-application-crypto", "frame-support/runtime-benchmarks",