Skip to content

Commit 590597a

Browse files
committed
pallet-revive: make a try_upload_pvm_code/code_hash public
... to help with foundry-polkadot implementation for etch cheatcode Signed-off-by: Alexandru Gheorghe <[email protected]>
1 parent 2c25da9 commit 590597a

File tree

1 file changed

+3
-3
lines changed
  • substrate/frame/revive/src

1 file changed

+3
-3
lines changed

substrate/frame/revive/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub use crate::{
4848
address::{
4949
create1, create2, is_eth_derived, AccountId32Mapper, AddressMapper, TestAccountMapper,
5050
},
51-
exec::{DelegateInfo, Key, MomentOf, Origin as ExecOrigin},
51+
exec::{DelegateInfo, Executable, Key, MomentOf, Origin as ExecOrigin},
5252
pallet::{genesis, *},
5353
storage::{AccountInfo, ContractInfo},
5454
};
@@ -57,7 +57,7 @@ use crate::{
5757
create_call, fees::InfoT as FeeInfo, runtime::SetWeightLimit, CallTracer,
5858
GenericTransaction, PrestateTracer, Trace, Tracer, TracerType, TYPE_EIP1559,
5959
},
60-
exec::{AccountIdOf, ExecError, Executable, Stack as ExecStack},
60+
exec::{AccountIdOf, ExecError, Stack as ExecStack},
6161
gas::GasMeter,
6262
storage::{meter::Meter as StorageMeter, AccountType, DeletionQueueManager},
6363
tracing::if_tracing,
@@ -1851,7 +1851,7 @@ impl<T: Config> Pallet<T> {
18511851
}
18521852

18531853
/// Uploads new code and returns the Vm binary contract blob and deposit amount collected.
1854-
fn try_upload_pvm_code(
1854+
pub fn try_upload_pvm_code(
18551855
origin: T::AccountId,
18561856
code: Vec<u8>,
18571857
storage_deposit_limit: BalanceOf<T>,

0 commit comments

Comments
 (0)