--- 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)] --- 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, - ) -> Result<(), sp_runtime::DispatchError> { - Ok(()) - } + ) {} } impl pallet_evm_coder_substrate::Config for Test { type EthereumTransactionSender = TestEtheremTransactionSender; + type GasWeightMapping = (); } impl pallet_common::Config for Test { --- 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)); }