git.delta.rocks / unique-network / refs/commits / 4fa2a1bb0fae

difftreelog

test fix unit tests

Yaroslav Bolyukin2021-07-27parent: #18b08e8.patch.diff
in: master

3 files changed

modifiedcrates/evm-coder/tests/a.rsdiffbeforeafterboth
--- a/crates/evm-coder/tests/a.rs
+++ b/crates/evm-coder/tests/a.rs
@@ -7,14 +7,14 @@
 
 #[solidity_interface(name = "OurInterface")]
 impl Impls {
-	fn fn_a(&self, input: uint256) -> Result<bool> {
+	fn fn_a(&self, _input: uint256) -> Result<bool> {
 		todo!()
 	}
 }
 
 #[solidity_interface(name = "OurInterface1")]
 impl Impls {
-	fn fn_b(&self, input: uint128) -> Result<uint32> {
+	fn fn_b(&self, _input: uint128) -> Result<uint32> {
 		todo!()
 	}
 }
@@ -27,17 +27,17 @@
 )]
 impl Impls {
 	#[solidity(rename_selector = "fnK")]
-	fn fn_c(&self, input: uint32) -> Result<uint8> {
+	fn fn_c(&self, _input: uint32) -> Result<uint8> {
 		todo!()
 	}
-	fn fn_d(&self, value: uint32) -> Result<uint32> {
+	fn fn_d(&self, _value: uint32) -> Result<uint32> {
 		todo!()
 	}
 
-	fn caller_sensitive(&self, caller: caller) -> Result<uint8> {
+	fn caller_sensitive(&self, _caller: caller) -> Result<uint8> {
 		todo!()
 	}
-	fn payable(&mut self, value: value) -> Result<uint8> {
+	fn payable(&mut self, _value: value) -> Result<uint8> {
 		todo!()
 	}
 }
@@ -65,25 +65,25 @@
 	fn decimals(&self) -> Result<uint8> {
 		todo!()
 	}
-	fn balance_of(&self, owner: address) -> Result<uint256> {
+	fn balance_of(&self, _owner: address) -> Result<uint256> {
 		todo!()
 	}
-	fn transfer(&mut self, caller: caller, to: address, value: uint256) -> Result<bool> {
+	fn transfer(&mut self, _caller: caller, _to: address, _value: uint256) -> Result<bool> {
 		todo!()
 	}
 	fn transfer_from(
 		&mut self,
-		caller: caller,
-		from: address,
-		to: address,
-		value: uint256,
+		_caller: caller,
+		_from: address,
+		_to: address,
+		_value: uint256,
 	) -> Result<bool> {
 		todo!()
 	}
-	fn approve(&mut self, caller: caller, spender: address, value: uint256) -> Result<bool> {
+	fn approve(&mut self, _caller: caller, _spender: address, _value: uint256) -> Result<bool> {
 		todo!()
 	}
-	fn allowance(&self, owner: address, spender: address) -> Result<uint256> {
+	fn allowance(&self, _owner: address, _spender: address) -> Result<uint256> {
 		todo!()
 	}
 }
modifiedpallets/evm-coder-substrate/src/lib.rsdiffbeforeafterboth
--- a/pallets/evm-coder-substrate/src/lib.rs
+++ b/pallets/evm-coder-substrate/src/lib.rs
@@ -38,7 +38,7 @@
 	}
 
 	#[pallet::config]
-	pub trait Config: frame_system::Config + pallet_evm::Config {
+	pub trait Config: frame_system::Config {
 		type EthereumTransactionSender: pallet_ethereum::EthereumTransactionSender;
 	}
 
modifiedpallets/nft/src/mock.rsdiffbeforeafterboth
6use sp_runtime::{6use sp_runtime::{
7 traits::{BlakeTwo256, IdentityLookup},7 traits::{BlakeTwo256, IdentityLookup},
8 testing::Header,8 testing::Header,
9 Perbill,
10};9};
11use pallet_transaction_payment::{CurrencyAdapter};10use pallet_transaction_payment::{CurrencyAdapter};
12use frame_system as system;11use frame_system as system;
99 type WeightInfo = ();98 type WeightInfo = ();
100}99}
101
102type Timestamp = pallet_timestamp::Pallet<Test>;
103type Randomness = pallet_randomness_collective_flip::Pallet<Test>;
104100
105parameter_types! {101parameter_types! {
106 pub const CollectionCreationPrice: u32 = 0;102 pub const CollectionCreationPrice: u32 = 0;
151 }147 }
152}148}
149
150impl pallet_evm_coder_substrate::Config for Test {
151 type EthereumTransactionSender = TestEtheremTransactionSender;
152}
153153
154impl pallet_template::Config for Test {154impl pallet_template::Config for Test {
155 type Event = ();155 type Event = ();
160 type EvmAddressMapping = TestEvmAddressMapping;160 type EvmAddressMapping = TestEvmAddressMapping;
161 type EvmBackwardsAddressMapping = TestEvmBackwardsAddressMapping;161 type EvmBackwardsAddressMapping = TestEvmBackwardsAddressMapping;
162 type CrossAccountId = TestCrossAccountId;162 type CrossAccountId = TestCrossAccountId;
163 type EthereumTransactionSender = TestEtheremTransactionSender;
164}163}
165164
166// Build genesis storage according to the mock runtime.165// Build genesis storage according to the mock runtime.