Register dev rpc api for canvas parachain (#1102)

* Register dev api for canvas parachain

* Update Substrate

* Update Polkadot
This commit is contained in:
Andrew Jones
2022-03-30 10:14:48 +01:00
committed by GitHub
parent 3b66550ead
commit 28d75eac87
+3 -1
View File
@@ -73,6 +73,7 @@ where
pub fn create_canvas_kusama<C, P>(deps: FullDeps<C, P>) -> RpcExtension pub fn create_canvas_kusama<C, P>(deps: FullDeps<C, P>) -> RpcExtension
where where
C: ProvideRuntimeApi<Block> C: ProvideRuntimeApi<Block>
+ sc_client_api::BlockBackend<Block>
+ HeaderBackend<Block> + HeaderBackend<Block>
+ AuxStore + AuxStore
+ HeaderMetadata<Block, Error = BlockChainError> + HeaderMetadata<Block, Error = BlockChainError>
@@ -93,7 +94,8 @@ where
io.extend_with(SystemApi::to_delegate(FullSystem::new(client.clone(), pool, deny_unsafe))); io.extend_with(SystemApi::to_delegate(FullSystem::new(client.clone(), pool, deny_unsafe)));
io.extend_with(TransactionPaymentApi::to_delegate(TransactionPayment::new(client.clone()))); io.extend_with(TransactionPaymentApi::to_delegate(TransactionPayment::new(client.clone())));
io.extend_with(ContractsApi::to_delegate(Contracts::new(client))); io.extend_with(ContractsApi::to_delegate(Contracts::new(client.clone())));
io.extend_with(sc_rpc::dev::DevApi::to_delegate(sc_rpc::dev::Dev::new(client, deny_unsafe)));
io io
} }