Skip to content
This repository was archived by the owner on Jul 4, 2022. It is now read-only.

Commit 21b887d

Browse files
shawntabriziAlexSedNZ
authored andcommitted
More fixes
1 parent 0092cc6 commit 21b887d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bin/node/rpc/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
use std::sync::Arc;
3434

35+
use node_runtime::{DispatchClass, Weight};
3536
use node_primitives::{Block, BlockNumber, AccountId, Index, Balance, Hash};
3637
use sc_consensus_babe::{Config, Epoch};
3738
use sc_consensus_babe_rpc::BabeRpcHandler;
@@ -114,7 +115,7 @@ pub fn create_full<C, P, SC, B>(
114115
C: Send + Sync + 'static,
115116
C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,
116117
C::Api: pallet_contracts_rpc::ContractsRuntimeApi<Block, AccountId, Balance, BlockNumber>,
117-
C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
118+
C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Weight, DispatchClass, Balance>,
118119
C::Api: BabeApi<Block>,
119120
C::Api: BlockBuilder<Block>,
120121
P: TransactionPool + 'static,

bin/node/runtime/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ use sp_std::prelude::*;
2727
use frame_support::{
2828
construct_runtime, parameter_types, debug, RuntimeDebug,
2929
weights::{
30-
Weight, IdentityFee, DispatchClass,
30+
IdentityFee,
3131
constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},
3232
},
3333
traits::{Currency, Imbalance, KeyOwnerProofSystem, OnUnbalanced, Randomness, LockIdentifier},
3434
};
35+
pub use frame_support::weights::{Weight, DispatchClass};
3536
use frame_system::{EnsureRoot, EnsureOneOf};
3637
use frame_support::traits::InstanceFilter;
3738
use codec::{Encode, Decode};

0 commit comments

Comments
 (0)