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..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}, @@ -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(),