From 012eb4335d15b4b635e7edd4bb87fa311d95d430 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 08 Jul 2021 11:52:30 +0000 Subject: [PATCH] refactor: disable contracts in collator --- --- a/node/cli/Cargo.toml +++ b/node/cli/Cargo.toml @@ -193,17 +193,6 @@ branch = 'polkadot-v0.9.7' version = '3.0.0' -[dependencies.pallet-contracts] -git = 'https://github.com/paritytech/substrate.git' -branch = 'polkadot-v0.9.7' -version = '3.0.0' - -[dependencies.pallet-contracts-rpc] -git = 'https://github.com/paritytech/substrate.git' -branch = 'polkadot-v0.9.7' -version = '3.0.0' - - [dependencies.sc-network] git = 'https://github.com/paritytech/substrate.git' branch = 'polkadot-v0.9.7' --- a/node/rpc/Cargo.toml +++ b/node/rpc/Cargo.toml @@ -13,7 +13,7 @@ futures = { version = "0.3.1", features = ["compat"] } jsonrpc-core = "15.0.0" jsonrpc-pubsub = "15.0.0" -pallet-contracts-rpc = { version = "3.0", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.7' } +# pallet-contracts-rpc = { version = "3.0", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.7' } pallet-transaction-payment-rpc = { version = "3.0", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.7' } pallet-transaction-payment-rpc-runtime-api = { version = "3.0", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.7' } sc-client-api = { version = "3.0", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.7' } --- a/node/rpc/src/lib.rs +++ b/node/rpc/src/lib.rs @@ -121,7 +121,7 @@ C: BlockchainEvents, C::Api: substrate_frame_rpc_system::AccountNonceApi, C::Api: BlockBuilder, - C::Api: pallet_contracts_rpc::ContractsRuntimeApi, + // C::Api: pallet_contracts_rpc::ContractsRuntimeApi, C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi, C::Api: fp_rpc::EthereumRuntimeRPCApi, C::Api: pallet_nft::NftApi, @@ -135,7 +135,7 @@ EthPubSubApiServer, EthSigner, HexEncodedIdProvider, NetApi, NetApiServer, Web3Api, Web3ApiServer, }; - use pallet_contracts_rpc::{Contracts, ContractsApi}; + // use pallet_contracts_rpc::{Contracts, ContractsApi}; use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi}; use substrate_frame_rpc_system::{FullSystem, SystemApi}; @@ -164,7 +164,7 @@ client.clone(), ))); - io.extend_with(ContractsApi::to_delegate(Contracts::new(client.clone()))); + // io.extend_with(ContractsApi::to_delegate(Contracts::new(client.clone()))); let mut signers = Vec::new(); if enable_dev_signer { -- gitstuff