From 539af4e72790f7ef7930fa7c0c3cfd1ec9dfdf64 Mon Sep 17 00:00:00 2001 From: Kai <7630809+Kailai-Wang@users.noreply.github.com> Date: Fri, 27 Sep 2024 15:08:00 +0200 Subject: [PATCH] Longer evm data size for revert message (#3100) * Increase ExtraDataLength to 256 bytes * more udpate --- parachain/pallets/evm-address/src/mock.rs | 2 +- parachain/runtime/litentry/src/lib.rs | 2 +- parachain/runtime/paseo/src/lib.rs | 2 +- parachain/runtime/rococo/src/lib.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parachain/pallets/evm-address/src/mock.rs b/parachain/pallets/evm-address/src/mock.rs index bc5b21150a..ca2b1a10f4 100644 --- a/parachain/pallets/evm-address/src/mock.rs +++ b/parachain/pallets/evm-address/src/mock.rs @@ -233,7 +233,7 @@ impl pallet_ethereum::Config for Test { type StateRoot = pallet_ethereum::IntermediateStateRoot; type PostLogContent = PostBlockAndTxnHashes; // Maximum length (in bytes) of revert message to include in Executed event - type ExtraDataLength = ConstU32<30>; + type ExtraDataLength = ConstU32<256>; } impl pallet_evm_address::Config for Test { diff --git a/parachain/runtime/litentry/src/lib.rs b/parachain/runtime/litentry/src/lib.rs index 4815a5fc21..0fe656a87f 100644 --- a/parachain/runtime/litentry/src/lib.rs +++ b/parachain/runtime/litentry/src/lib.rs @@ -1103,7 +1103,7 @@ impl pallet_ethereum::Config for Runtime { type StateRoot = pallet_ethereum::IntermediateStateRoot; type PostLogContent = PostBlockAndTxnHashes; // Maximum length (in bytes) of revert message to include in Executed event - type ExtraDataLength = ConstU32<30>; + type ExtraDataLength = ConstU32<256>; } parameter_types! { diff --git a/parachain/runtime/paseo/src/lib.rs b/parachain/runtime/paseo/src/lib.rs index f80bc095ec..8c5267e471 100644 --- a/parachain/runtime/paseo/src/lib.rs +++ b/parachain/runtime/paseo/src/lib.rs @@ -1146,7 +1146,7 @@ impl pallet_ethereum::Config for Runtime { type StateRoot = pallet_ethereum::IntermediateStateRoot; type PostLogContent = PostBlockAndTxnHashes; // Maximum length (in bytes) of revert message to include in Executed event - type ExtraDataLength = ConstU32<30>; + type ExtraDataLength = ConstU32<256>; } parameter_types! { diff --git a/parachain/runtime/rococo/src/lib.rs b/parachain/runtime/rococo/src/lib.rs index c875ce5e53..ba7f2ca240 100644 --- a/parachain/runtime/rococo/src/lib.rs +++ b/parachain/runtime/rococo/src/lib.rs @@ -1145,7 +1145,7 @@ impl pallet_ethereum::Config for Runtime { type StateRoot = pallet_ethereum::IntermediateStateRoot; type PostLogContent = PostBlockAndTxnHashes; // Maximum length (in bytes) of revert message to include in Executed event - type ExtraDataLength = ConstU32<30>; + type ExtraDataLength = ConstU32<256>; } parameter_types! {