Companion for polkadot#5569 (#1281)

* Companion for polkadot#5569

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* update lockfile for {"polkadot"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Qinxuan Chen
2022-05-21 17:14:02 +08:00
committed by GitHub
parent d54e2d1d49
commit eb643b89b8
4 changed files with 262 additions and 262 deletions
+4 -4
View File
@@ -46,13 +46,13 @@ where
C::Api: BlockBuilder<Block>,
P: TransactionPool + Sync + Send + 'static,
{
use pallet_transaction_payment_rpc::{TransactionPaymentApiServer, TransactionPaymentRpc};
use substrate_frame_rpc_system::{SystemApiServer, SystemRpc};
use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApiServer};
use substrate_frame_rpc_system::{System, SystemApiServer};
let mut module = RpcExtension::new(());
let FullDeps { client, pool, deny_unsafe } = deps;
module.merge(SystemRpc::new(client.clone(), pool.clone(), deny_unsafe).into_rpc())?;
module.merge(TransactionPaymentRpc::new(client.clone()).into_rpc())?;
module.merge(System::new(client.clone(), pool.clone(), deny_unsafe).into_rpc())?;
module.merge(TransactionPayment::new(client.clone()).into_rpc())?;
Ok(module)
}