From 2997bf1c3ff6daea4c6720b2fe5bab6206a56721 Mon Sep 17 00:00:00 2001
From: Pavlo Khrystenko
Date: Fri, 16 Jan 2026 15:19:43 +0100
Subject: [PATCH 1/2] add more deposit_limits
---
crates/revive-strategy/src/cheatcodes/mod.rs | 6 +++---
crates/revive-strategy/src/state.rs | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/crates/revive-strategy/src/cheatcodes/mod.rs b/crates/revive-strategy/src/cheatcodes/mod.rs
index e4350caa33c1c..f2a063fbd7789 100644
--- a/crates/revive-strategy/src/cheatcodes/mod.rs
+++ b/crates/revive-strategy/src/cheatcodes/mod.rs
@@ -28,8 +28,8 @@ use tracing::warn;
use alloy_eips::eip7702::SignedAuthorization;
use polkadot_sdk::{
pallet_revive::{
- self, AccountId32Mapper, AccountInfo, AddressMapper, BalanceOf, BytecodeType, Code,
- ContractInfo, DebugSettings, ExecConfig, Executable, Pallet, ResourceMeter, evm::CallTrace,
+ self, AccountId32Mapper, AccountInfo, AddressMapper, BytecodeType, Code, ContractInfo,
+ DebugSettings, ExecConfig, Executable, Pallet, ResourceMeter, evm::CallTrace,
},
polkadot_sdk_frame::prelude::OriginFor,
sp_core::{self, H160},
@@ -786,7 +786,7 @@ fn select_revive(ctx: &mut PvmCheatcodeInspectorStrategyContext, data: Ecx<'_, '
BytecodeType::Evm,
&mut ResourceMeter::new(pallet_revive::TransactionLimits::WeightAndDeposit {
weight_limit: Weight::from_parts(10_000_000_000_000, 100_000_000),
- deposit_limit: BalanceOf::::MAX,
+ deposit_limit: 100_000_000_000_000,
})
.unwrap(),
&ExecConfig::new_substrate_tx_without_bump(),
diff --git a/crates/revive-strategy/src/state.rs b/crates/revive-strategy/src/state.rs
index 8d6723c5091ef..8e2c2965c690c 100644
--- a/crates/revive-strategy/src/state.rs
+++ b/crates/revive-strategy/src/state.rs
@@ -170,7 +170,7 @@ impl TestEnv {
code_type,
&mut ResourceMeter::new(pallet_revive::TransactionLimits::WeightAndDeposit {
weight_limit: Weight::from_parts(10_000_000_000_000, 100_000_000),
- deposit_limit: BalanceOf::::MAX,
+ deposit_limit: { 100_000_000_000_000 },
})
.unwrap(),
&ExecConfig::new_substrate_tx(),
From 2f4474de8c4d5859b7f54a031e2caa8d310b5a4d Mon Sep 17 00:00:00 2001
From: Pavlo Khrystenko
Date: Fri, 16 Jan 2026 15:29:08 +0100
Subject: [PATCH 2/2] clippy
---
crates/revive-strategy/src/state.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crates/revive-strategy/src/state.rs b/crates/revive-strategy/src/state.rs
index 8e2c2965c690c..1b0b7b588914c 100644
--- a/crates/revive-strategy/src/state.rs
+++ b/crates/revive-strategy/src/state.rs
@@ -2,7 +2,7 @@ use alloy_primitives::{Address, B256, Bytes, FixedBytes, U256};
use foundry_cheatcodes::{Ecx, Error, Result};
use polkadot_sdk::{
pallet_revive::{
- self, AccountId32Mapper, AccountInfo, AddressMapper, BalanceOf, BytecodeType, ContractInfo,
+ self, AccountId32Mapper, AccountInfo, AddressMapper, BytecodeType, ContractInfo,
ExecConfig, Executable, Pallet, ResourceMeter,
},
sp_core::{self, H160, H256},