difftreelog
test fix
in: master
3 files changed
crates/evm-coder/tests/log.rsdiffbeforeafterboth1#![allow(dead_code)]21use evm_coder::{ToLog, types::*};3use evm_coder::{ToLog, types::*};24pallets/unique/src/mock.rsdiffbeforeafterboth1#![allow(clippy::from_over_into)]1#![allow(clippy::from_over_into)]223use 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}168167169impl 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}172172173impl pallet_common::Config for Test {173impl pallet_common::Config for Test {pallets/unique/src/tests.rsdiffbeforeafterboth2247#[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);226122612262 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