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
--- a/pallets/unique/src/mock.rs
+++ b/pallets/unique/src/mock.rs
@@ -1,7 +1,7 @@
 #![allow(clippy::from_over_into)]
 
 use crate as pallet_template;
-use sp_core::H256;
+use sp_core::{H160, H256};
 use frame_support::{parameter_types, traits::Everything, weights::IdentityFee};
 use sp_runtime::{
 	traits::{BlakeTwo256, IdentityLookup},
@@ -159,15 +159,15 @@
 pub struct TestEtheremTransactionSender;
 impl pallet_ethereum::EthereumTransactionSender for TestEtheremTransactionSender {
 	fn submit_logs_transaction(
+		_source: H160,
 		_tx: pallet_ethereum::Transaction,
 		_logs: Vec<pallet_ethereum::Log>,
-	) -> Result<(), sp_runtime::DispatchError> {
-		Ok(())
-	}
+	) {}
 }
 
 impl pallet_evm_coder_substrate::Config for Test {
 	type EthereumTransactionSender = TestEtheremTransactionSender;
+	type GasWeightMapping = ();
 }
 
 impl pallet_common::Config for Test {
modifiedpallets/unique/src/tests.rsdiffbeforeafterboth
2247#[test]2247#[test]
2248fn create_max_collections() {2248fn create_max_collections() {
2249 new_test_ext().execute_with(|| {2249 new_test_ext().execute_with(|| {
2250 for i in 1..=COLLECTION_NUMBER_LIMIT {2250 for i in 1..COLLECTION_NUMBER_LIMIT {
2251 create_test_collection(&CollectionMode::NFT, CollectionId(i));2251 create_test_collection(&CollectionMode::NFT, CollectionId(i));
2252 }2252 }
2253 });2253 });
2259 new_test_ext().execute_with(|| {2259 new_test_ext().execute_with(|| {
2260 let origin1 = Origin::signed(1);2260 let origin1 = Origin::signed(1);
22612261
2262 for i in 1..=COLLECTION_NUMBER_LIMIT {2262 for i in 1..COLLECTION_NUMBER_LIMIT {
2263 create_test_collection(&CollectionMode::NFT, CollectionId(i));2263 create_test_collection(&CollectionMode::NFT, CollectionId(i));
2264 }2264 }
22652265