From 0ebae6f098378ad6e032d241b5b0ebaa0ea37e3c Mon Sep 17 00:00:00 2001 From: Frank Bell Date: Sat, 24 Feb 2024 21:37:01 +0000 Subject: [PATCH] fix: inline single use constant --- runtime/src/contracts_config.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/src/contracts_config.rs b/runtime/src/contracts_config.rs index 6976cc45..8f1fc4b3 100644 --- a/runtime/src/contracts_config.rs +++ b/runtime/src/contracts_config.rs @@ -49,7 +49,6 @@ parameter_types! { pub Schedule: pallet_contracts::Schedule = schedule::(); pub const DefaultDepositLimit: Balance = deposit(1024, 1024 * 1024); pub const CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(0); - pub const MaxDelegateDependencies: u32 = 32; } impl pallet_contracts::Config for Runtime { @@ -88,7 +87,7 @@ impl pallet_contracts::Config for Runtime { type MaxDebugBufferLen = ConstU32<{ 2 * 1024 * 1024 }>; type UnsafeUnstableInterface = ConstBool; type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent; - type MaxDelegateDependencies = MaxDelegateDependencies; + type MaxDelegateDependencies = ConstU32<32>; type RuntimeHoldReason = RuntimeHoldReason; type Environment = ();