mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 11:25:42 +00:00
Update Substrate & Polkadot (#861)
This commit is contained in:
Generated
+246
-245
File diff suppressed because it is too large
Load Diff
@@ -22,7 +22,7 @@ use runtime::{
|
|||||||
Balance, Block, BlockHashCount, Call, GenesisConfig, Runtime, Signature, SignedExtra,
|
Balance, Block, BlockHashCount, Call, GenesisConfig, Runtime, Signature, SignedExtra,
|
||||||
SignedPayload, UncheckedExtrinsic, VERSION,
|
SignedPayload, UncheckedExtrinsic, VERSION,
|
||||||
};
|
};
|
||||||
use sc_executor::{sp_wasm_interface::HostFunctions, WasmExecutionMethod, WasmExecutor};
|
use sc_executor::{WasmExecutionMethod, WasmExecutor};
|
||||||
use sc_executor_common::runtime_blob::RuntimeBlob;
|
use sc_executor_common::runtime_blob::RuntimeBlob;
|
||||||
use sc_service::client;
|
use sc_service::client;
|
||||||
use sp_blockchain::HeaderBackend;
|
use sp_blockchain::HeaderBackend;
|
||||||
@@ -179,10 +179,9 @@ pub fn validate_block(
|
|||||||
let mut ext = TestExternalities::default();
|
let mut ext = TestExternalities::default();
|
||||||
let mut ext_ext = ext.ext();
|
let mut ext_ext = ext.ext();
|
||||||
|
|
||||||
let executor = WasmExecutor::new(
|
let executor = WasmExecutor::<sp_io::SubstrateHostFunctions>::new(
|
||||||
WasmExecutionMethod::Interpreted,
|
WasmExecutionMethod::Interpreted,
|
||||||
Some(1024),
|
Some(1024),
|
||||||
sp_io::SubstrateHostFunctions::host_functions(),
|
|
||||||
1,
|
1,
|
||||||
None,
|
None,
|
||||||
2,
|
2,
|
||||||
|
|||||||
Reference in New Issue
Block a user