mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-11-07 11:21:11 +00:00
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:
1 parent
13070a4bdf
commit
d8c23130bb
4 files changed
+16
-2
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user