Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 959f801

Browse files
committed
fix build
1 parent b2c9c14 commit 959f801

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ txpool-api = { package = "sp-transaction-pool", git = "https://github.com/parity
2424
frame-rpc-system = { package = "substrate-frame-rpc-system", git = "https://github.com/paritytech/substrate", branch = "master" }
2525
pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" }
2626
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false }
27+
sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }

rpc/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ use sp_consensus_babe::BabeApi;
2929
use sc_client_api::light::{Fetcher, RemoteBlockchain};
3030
use sc_consensus_babe::Epoch;
3131
use sc_rpc::DenyUnsafe;
32+
use sp_block_builder::BlockBuilder;
3233

3334
/// A type representing all RPC extensions.
3435
pub type RpcExtension = jsonrpc_core::IoHandler<sc_rpc::Metadata>;
@@ -87,6 +88,7 @@ pub fn create_full<C, P, UE, SC>(deps: FullDeps<C, P, SC>) -> RpcExtension where
8788
C::Api: frame_rpc_system::AccountNonceApi<Block, AccountId, Nonce>,
8889
C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance, UE>,
8990
C::Api: BabeApi<Block>,
91+
C::Api: BlockBuilder<Block>,
9092
P: TransactionPool + Sync + Send + 'static,
9193
UE: codec::Codec + Send + Sync + 'static,
9294
SC: SelectChain<Block> + 'static,
@@ -116,7 +118,7 @@ pub fn create_full<C, P, UE, SC>(deps: FullDeps<C, P, SC>) -> RpcExtension where
116118
} = grandpa;
117119

118120
io.extend_with(
119-
SystemApi::to_delegate(FullSystem::new(client.clone(), pool))
121+
SystemApi::to_delegate(FullSystem::new(client.clone(), pool, deny_unsafe))
120122
);
121123
io.extend_with(
122124
TransactionPaymentApi::to_delegate(TransactionPayment::new(client.clone()))
@@ -164,7 +166,7 @@ pub fn create_light<C, P, F, UE>(deps: LightDeps<C, F, P>) -> RpcExtension
164166
} = deps;
165167
let mut io = jsonrpc_core::IoHandler::default();
166168
io.extend_with(
167-
SystemApi::<AccountId, Nonce>::to_delegate(LightSystem::new(client, remote_blockchain, fetcher, pool))
169+
SystemApi::<Hash, AccountId, Nonce>::to_delegate(LightSystem::new(client, remote_blockchain, fetcher, pool))
168170
);
169171
io
170172
}

0 commit comments

Comments
 (0)