From 28f7814fb2693aaea175d64fa6ed22c7371e9a05 Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 21 Oct 2019 07:46:23 +0100 Subject: [PATCH] Change Contracts::DefaultMaxDepth from 1024 to 32 (#3855) * Change DefaultMaxDepth from 1024 to 32 * bump impl and spec version --- substrate/node/runtime/src/lib.rs | 2 +- substrate/srml/contracts/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/node/runtime/src/lib.rs b/substrate/node/runtime/src/lib.rs index 69f812ce32..d11897845b 100644 --- a/substrate/node/runtime/src/lib.rs +++ b/substrate/node/runtime/src/lib.rs @@ -84,7 +84,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // and set impl_version to equal spec_version. If only runtime // implementation changes and behavior does not, then leave spec_version as // is and increment impl_version. - spec_version: 179, + spec_version: 180, impl_version: 180, apis: RUNTIME_API_VERSIONS, }; diff --git a/substrate/srml/contracts/src/lib.rs b/substrate/srml/contracts/src/lib.rs index 3d8a455ad7..e52d059992 100644 --- a/substrate/srml/contracts/src/lib.rs +++ b/substrate/srml/contracts/src/lib.rs @@ -325,7 +325,7 @@ parameter_types! { /// A reasonable default value for [`Trait::InstantiateBaseFee`]. pub const DefaultInstantiateBaseFee: u32 = 1000; /// A reasonable default value for [`Trait::MaxDepth`]. - pub const DefaultMaxDepth: u32 = 1024; + pub const DefaultMaxDepth: u32 = 32; /// A reasonable default value for [`Trait::MaxValueSize`]. pub const DefaultMaxValueSize: u32 = 16_384; /// A reasonable default value for [`Trait::BlockGasLimit`].