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 ce33401c70
commit 072c81ee2a
+3 -1
View File
@@ -73,6 +73,7 @@ where
pub fn create_canvas_kusama<C, P>(deps: FullDeps<C, P>) -> RpcExtension
where
C: ProvideRuntimeApi<Block>
+ sc_client_api::BlockBackend<Block>
+ HeaderBackend<Block>
+ AuxStore
+ 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(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
}