revive-runner: enable PVM logs (#442)

This PR fixes a small oversight from #431: Set the debug config of the
revive-runner `Runtime` such that we get the PVM logs back. Since the
revive runner runtime is mainly meant for debugging, I further decided
to enable unlimited contract sizes and disable [EIP
3607](https://eips.ethereum.org/EIPS/eip-3607) too.

---------

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus authored and GitHub committed 2026-01-06 18:31:45 +01:00
1 parent 13070a4bdf
commit d8c23130bb
4 files changed
+16 -2

No files matched your search

+12 -1
View File
@@ -28,7 +28,7 @@ use std::time::Duration;
use hex::{FromHex, ToHex};
use pallet_revive::{AddressMapper, ExecReturnValue, InstantiateReturnValue};
use polkadot_sdk::frame_support::traits::Currency;
use polkadot_sdk::pallet_revive::{Config, Pallet};
use polkadot_sdk::pallet_revive::{Config, DebugSettings, Pallet};
use polkadot_sdk::*;
use polkadot_sdk::{
pallet_revive::ContractResult,
@@ -89,6 +89,17 @@ impl ExtBuilder {
.build_storage()
.unwrap();
pallet_revive::GenesisConfig::<Runtime> {
debug_settings: Some(DebugSettings::new(
true, // allow unlimited contract size
true, // bypass EIP 3607
true, // enable PVM logs
)),
..Default::default()
}
.assimilate_storage(&mut t)
.unwrap();
pallet_balances::GenesisConfig::<Runtime> {
balances: self.balance_genesis_config,
dev_accounts: None,
+2
View File
@@ -61,6 +61,7 @@ impl pallet_timestamp::Config for Runtime {}
parameter_types! {
pub const UnstableInterface: bool = true;
pub const DebugFlag: bool = true;
pub const DepositPerByte: Balance = 1;
pub const DepositPerItem: Balance = 2;
pub const CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(0);
@@ -87,6 +88,7 @@ impl pallet_revive::Config for Runtime {
type ChainId = ConstU64<420_420_420>;
type FindAuthor = Self;
type NativeToEthRatio = ConstU32<{ crate::ETH_RATIO as u32 }>;
type DebugEnabled = DebugFlag;
}
impl FindAuthor<<Runtime as frame_system::Config>::AccountId> for Runtime {