git.delta.rocks / unique-network / refs/commits / 4512cc90ff9a

difftreelog

test fix

Yaroslav Bolyukin2021-12-02parent: #7b6d12c.patch.diff
in: master

3 files changed

modifiedcrates/evm-coder/tests/log.rsdiffbeforeafterboth
--- a/crates/evm-coder/tests/log.rs
+++ b/crates/evm-coder/tests/log.rs
@@ -1,3 +1,5 @@
+#![allow(dead_code)]
+
 use evm_coder::{ToLog, types::*};
 
 #[derive(ToLog)]
modifiedpallets/unique/src/mock.rsdiffbeforeafterboth
1#![allow(clippy::from_over_into)]1#![allow(clippy::from_over_into)]
22
3use crate as pallet_template;3use crate as pallet_template;
4use sp_core::H256;4use sp_core::{H160, H256};
5use frame_support::{parameter_types, traits::Everything, weights::IdentityFee};5use frame_support::{parameter_types, traits::Everything, weights::IdentityFee};
6use sp_runtime::{6use sp_runtime::{
7 traits::{BlakeTwo256, IdentityLookup},7 traits::{BlakeTwo256, IdentityLookup},
159pub struct TestEtheremTransactionSender;159pub struct TestEtheremTransactionSender;
160impl pallet_ethereum::EthereumTransactionSender for TestEtheremTransactionSender {160impl pallet_ethereum::EthereumTransactionSender for TestEtheremTransactionSender {
161 fn submit_logs_transaction(161 fn submit_logs_transaction(
162 _source: H160,
162 _tx: pallet_ethereum::Transaction,163 _tx: pallet_ethereum::Transaction,
163 _logs: Vec<pallet_ethereum::Log>,164 _logs: Vec<pallet_ethereum::Log>,
164 ) -> Result<(), sp_runtime::DispatchError> {165 ) {}
165 Ok(())
166 }
167}166}
168167
169impl pallet_evm_coder_substrate::Config for Test {168impl pallet_evm_coder_substrate::Config for Test {
170 type EthereumTransactionSender = TestEtheremTransactionSender;169 type EthereumTransactionSender = TestEtheremTransactionSender;
170 type GasWeightMapping = ();
171}171}
172172
173impl pallet_common::Config for Test {173impl pallet_common::Config for Test {
modifiedpallets/unique/src/tests.rsdiffbeforeafterboth
--- a/pallets/unique/src/tests.rs
+++ b/pallets/unique/src/tests.rs
@@ -2247,7 +2247,7 @@
 #[test]
 fn create_max_collections() {
 	new_test_ext().execute_with(|| {
-		for i in 1..=COLLECTION_NUMBER_LIMIT {
+		for i in 1..COLLECTION_NUMBER_LIMIT {
 			create_test_collection(&CollectionMode::NFT, CollectionId(i));
 		}
 	});
@@ -2259,7 +2259,7 @@
 	new_test_ext().execute_with(|| {
 		let origin1 = Origin::signed(1);
 
-		for i in 1..=COLLECTION_NUMBER_LIMIT {
+		for i in 1..COLLECTION_NUMBER_LIMIT {
 			create_test_collection(&CollectionMode::NFT, CollectionId(i));
 		}