Skip to content

Commit ed0f8a4

Browse files
committed
Add ExistentialDeposit to fix Revive contract upload/deploy.
1 parent 1ede317 commit ed0f8a4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pallets/runtime/common/src/runtime.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ macro_rules! misc_pallet_impls {
248248
type WeightInfo = polymesh_weights::pallet_balances::SubstrateWeight;
249249
type Balance = Balance;
250250
type DustRemoval = ();
251-
#[cfg(not(feature = "runtime-benchmarks"))]
252-
type ExistentialDeposit = ExistentialDeposit;
253-
#[cfg(feature = "runtime-benchmarks")]
251+
//#[cfg(not(feature = "runtime-benchmarks"))]
252+
//type ExistentialDeposit = ExistentialDeposit;
253+
//#[cfg(feature = "runtime-benchmarks")]
254254
type ExistentialDeposit = BenchmarkEd;
255255
type AccountStore = frame_system::Pallet<Runtime>;
256256
type ReserveIdentifier = [u8; 8];

pallets/runtime/tests/src/storage.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ impl OnUnbalanced<Credit<AccountId, Balances>> for DealWithFees {
534534
parameter_types! {
535535
pub const SS58Prefix: u8 = 12;
536536
pub const ExistentialDeposit: u64 = 0;
537+
pub const BenchmarkEd: Balance = 1;
537538
pub const MaxLocks: u32 = 50;
538539
pub const MaxHolds: u32 = 32;
539540
pub const MaxFreezes: u32 = 32;

0 commit comments

Comments
 (0)