git.delta.rocks / unique-network / refs/commits / 733eebb466ef

difftreelog

fix reenable contracts api

Yaroslav Bolyukin2021-04-30parent: #415e3d6.patch.diff
in: master

1 file changed

modifiednode/src/rpc.rsdiffbeforeafterboth
77
8use std::collections::BTreeMap;8use std::collections::BTreeMap;
9use fc_rpc_core::types::{PendingTransactions, FilterPool};9use fc_rpc_core::types::{PendingTransactions, FilterPool};
10use nft_runtime::{Hash, AccountId, Index, opaque::Block, Balance};10use nft_runtime::{Hash, AccountId, Index, opaque::Block, BlockNumber, Balance};
11use sp_api::ProvideRuntimeApi;11use sp_api::ProvideRuntimeApi;
12use sp_blockchain::{Error as BlockChainError, HeaderMetadata, HeaderBackend};12use sp_blockchain::{Error as BlockChainError, HeaderMetadata, HeaderBackend};
13use sc_client_api::{13use sc_client_api::{
71 C: Send + Sync + 'static,71 C: Send + Sync + 'static,
72 C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,72 C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,
73 C::Api: BlockBuilder<Block>,73 C::Api: BlockBuilder<Block>,
74 C::Api: pallet_contracts_rpc::ContractsRuntimeApi<Block, AccountId, Balance, BlockNumber>,
74 C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,75 C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
75 C::Api: fp_rpc::EthereumRuntimeRPCApi<Block>,76 C::Api: fp_rpc::EthereumRuntimeRPCApi<Block>,
76 P: TransactionPool<Block=Block> + 'static,77 P: TransactionPool<Block=Block> + 'static,
104 TransactionPaymentApi::to_delegate(TransactionPayment::new(client.clone()))105 TransactionPaymentApi::to_delegate(TransactionPayment::new(client.clone()))
105 );106 );
106107
107 // io.extend_with(108 io.extend_with(
108 // ContractsApi::to_delegate(Contracts::new(client.clone()))109 pallet_contracts_rpc::ContractsApi::to_delegate(pallet_contracts_rpc::Contracts::new(client.clone()))
109 // );110 );
110111
111 let mut signers = Vec::new();112 let mut signers = Vec::new();
112 if enable_dev_signer {113 if enable_dev_signer {