git.delta.rocks / unique-network / refs/commits / 012eb4335d15

difftreelog

refactor disable contracts in collator

Yaroslav Bolyukin2021-07-08parent: #8def008.patch.diff
in: master

3 files changed

modifiednode/cli/Cargo.tomldiffbeforeafterboth
193branch = 'polkadot-v0.9.7'193branch = 'polkadot-v0.9.7'
194version = '3.0.0'194version = '3.0.0'
195
196[dependencies.pallet-contracts]
197git = 'https://github.com/paritytech/substrate.git'
198branch = 'polkadot-v0.9.7'
199version = '3.0.0'
200
201[dependencies.pallet-contracts-rpc]
202git = 'https://github.com/paritytech/substrate.git'
203branch = 'polkadot-v0.9.7'
204version = '3.0.0'
205
206195
207[dependencies.sc-network]196[dependencies.sc-network]
modifiednode/rpc/Cargo.tomldiffbeforeafterboth
--- 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' }
modifiednode/rpc/src/lib.rsdiffbeforeafterboth
--- a/node/rpc/src/lib.rs
+++ b/node/rpc/src/lib.rs
@@ -121,7 +121,7 @@
 	C: BlockchainEvents<Block>,
 	C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,
 	C::Api: BlockBuilder<Block>,
-	C::Api: pallet_contracts_rpc::ContractsRuntimeApi<Block, AccountId, Balance, BlockNumber, Hash>,
+	// C::Api: pallet_contracts_rpc::ContractsRuntimeApi<Block, AccountId, Balance, BlockNumber, Hash>,
 	C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
 	C::Api: fp_rpc::EthereumRuntimeRPCApi<Block>,
 	C::Api: pallet_nft::NftApi<Block>,
@@ -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 {