mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-23 20:26:19 +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:
1 parent
d3f5c70dde
commit
495773f96d
14 files changed
+40
-27
No files matched your search
@@ -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