mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 04:07:57 +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:
@@ -35,7 +35,7 @@ use sp_core::{
|
||||
testing::{TestOffchainExt, TestTransactionPoolExt},
|
||||
OffchainDbExt, OffchainWorkerExt, TransactionPoolExt,
|
||||
},
|
||||
traits::CallContext,
|
||||
traits::{CallContext, ReadRuntimeVersionExt},
|
||||
};
|
||||
use sp_externalities::Extensions;
|
||||
use sp_keystore::{testing::MemoryKeystore, KeystoreExt};
|
||||
@@ -225,6 +225,7 @@ impl PalletCmd {
|
||||
extensions.register(OffchainWorkerExt::new(offchain.clone()));
|
||||
extensions.register(OffchainDbExt::new(offchain));
|
||||
extensions.register(TransactionPoolExt::new(pool));
|
||||
extensions.register(ReadRuntimeVersionExt::new(executor.clone()));
|
||||
extensions
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user