mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
Move registration of ReadRuntimeVersionExt to ExecutionExtension (#13820)
Instead of registering `ReadRuntimeVersionExt` in `sp-state-machine` it is moved to `ExecutionExtension` which provides the default extensions.
This commit is contained in:
@@ -133,7 +133,7 @@ where
|
||||
&executor,
|
||||
"TryRuntime_execute_block",
|
||||
&payload,
|
||||
full_extensions(),
|
||||
full_extensions(executor.clone()),
|
||||
shared.export_proof,
|
||||
)?;
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ async fn dry_run<T: Decode, Block: BlockT, HostFns: HostFunctions>(
|
||||
executor,
|
||||
method,
|
||||
data,
|
||||
full_extensions(),
|
||||
full_extensions(executor.clone()),
|
||||
)?;
|
||||
|
||||
Ok(<T>::decode(&mut &*result)?)
|
||||
@@ -121,7 +121,7 @@ async fn run<Block: BlockT, HostFns: HostFunctions>(
|
||||
executor,
|
||||
method,
|
||||
data,
|
||||
full_extensions(),
|
||||
full_extensions(executor.clone()),
|
||||
)?;
|
||||
|
||||
let storage_changes = changes.drain_storage_changes(
|
||||
|
||||
@@ -149,7 +149,7 @@ where
|
||||
&executor,
|
||||
"TryRuntime_execute_block",
|
||||
(block, command.state_root_check, command.try_state.clone()).encode().as_ref(),
|
||||
full_extensions(),
|
||||
full_extensions(executor.clone()),
|
||||
shared
|
||||
.export_proof
|
||||
.as_ref()
|
||||
|
||||
@@ -97,7 +97,7 @@ where
|
||||
&executor,
|
||||
"OffchainWorkerApi_offchain_worker",
|
||||
&payload,
|
||||
full_extensions(),
|
||||
full_extensions(executor.clone()),
|
||||
)?;
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user