From 09d2b0d64503953c3aa3ddea70762760138c5be2 Mon Sep 17 00:00:00 2001 From: Aten Date: Thu, 24 Jun 2021 18:54:38 +0800 Subject: [PATCH] remove weight check in runtime (#86) --- Cargo.lock | 4 ++-- bin/europa/Cargo.toml | 2 +- bin/europa/cli/Cargo.toml | 2 +- bin/europa/runtime/src/lib.rs | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1ab6330..249150f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1748,14 +1748,14 @@ dependencies = [ [[package]] name = "europa" -version = "0.3.0" +version = "0.3.1" dependencies = [ "europa-cli", ] [[package]] name = "europa-cli" -version = "0.3.0" +version = "0.3.1" dependencies = [ "ec-cli", "ec-service", diff --git a/bin/europa/Cargo.toml b/bin/europa/Cargo.toml index 9d6a814..df5832a 100644 --- a/bin/europa/Cargo.toml +++ b/bin/europa/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "europa" -version = "0.3.0" +version = "0.3.1" authors = ["patract labs "] edition = "2018" description = "A sandbox of Substrate runtime execution environment." diff --git a/bin/europa/cli/Cargo.toml b/bin/europa/cli/Cargo.toml index ae59ac4..299157a 100644 --- a/bin/europa/cli/Cargo.toml +++ b/bin/europa/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "europa-cli" -version = "0.3.0" +version = "0.3.1" authors = ["patract labs "] edition = "2018" diff --git a/bin/europa/runtime/src/lib.rs b/bin/europa/runtime/src/lib.rs index 8e3d789..adf215e 100644 --- a/bin/europa/runtime/src/lib.rs +++ b/bin/europa/runtime/src/lib.rs @@ -343,7 +343,8 @@ pub type SignedExtra = ( frame_system::CheckGenesis, frame_system::CheckEra, frame_system::CheckNonce, - frame_system::CheckWeight, + // remove weight check for contract for it may be very large in debug mode. + // frame_system::CheckWeight, pallet_transaction_payment::ChargeTransactionPayment, ); /// Unchecked extrinsic type as expected by this runtime.