difftreelog
CORE-302 Clean code
in: master
7 files changed
pallets/common/src/lib.rsdiffbeforeafterbothno syntactic changes
pallets/evm-collection/src/eth.rsdiffbeforeafterboth18use evm_coder::{abi::AbiWriter, execution::*, generate_stubgen, solidity_interface, types::*, ToLog};18use evm_coder::{abi::AbiWriter, execution::*, generate_stubgen, solidity_interface, types::*, ToLog};19use ethereum as _;19use ethereum as _;20use pallet_common::CollectionById;20use pallet_common::CollectionById;21use pallet_common::CollectionHandle;21use pallet_evm_coder_substrate::{SubstrateRecorder, WithRecorder};22use pallet_evm_coder_substrate::{SubstrateRecorder, WithRecorder};22use pallet_evm::{23use pallet_evm::{23 ExitRevert, OnCreate, OnMethodCall, PrecompileResult, PrecompileFailure,24 ExitRevert, OnCreate, OnMethodCall, PrecompileResult, PrecompileFailure,pallets/evm-collection/src/lib.rsdiffbeforeafterboth181819extern crate alloc;19extern crate alloc;202021use codec::{Decode, Encode, MaxEncodedLen};22pub use pallet::*;21pub use pallet::*;23pub use eth::*;22pub use eth::*;24use scale_info::TypeInfo;25pub mod eth;23pub mod eth;262427#[frame_support::pallet]25#[frame_support::pallet]28pub mod pallet {26pub mod pallet {29 pub use super::*;27 pub use super::*;30 use evm_coder::execution::Result;31 use frame_support::pallet_prelude::*;28 use frame_support::pallet_prelude::*;32 use sp_core::H160;29 use sp_core::H160;3330pallets/evm-contract-helpers/src/lib.rsdiffbeforeafterbothno syntactic changes
primitives/data-structs/src/lib.rsdiffbeforeafterbothno syntactic changes
runtime/opal/src/lib.rsdiffbeforeafterbothno syntactic changes
tests/src/eth/createCollection.test.tsdiffbeforeafterboth101 expect(collection.constOnChainSchema.toHuman()).to.be.eq(constShema);101 expect(collection.constOnChainSchema.toHuman()).to.be.eq(constShema);102 });102 });103103104 itWeb3.only('Set limits', async ({api, web3}) => {104 itWeb3('Set limits', async ({api, web3}) => {105 const owner = await createEthAccountWithBalance(api, web3);105 const owner = await createEthAccountWithBalance(api, web3);106 const helper = collectionHelper(web3, owner);106 const helper = collectionHelper(web3, owner);107 const result = await helper.methods.create721Collection('Const collection', '4', '4').send();107 const result = await helper.methods.create721Collection('Const collection', '4', '4').send();