git.delta.rocks / unique-network / refs/commits / 73ad88465834

difftreelog

CORE-302 Clean code

Trubnikov Sergey2022-04-26parent: #3912bc1.patch.diff
in: master

7 files changed

modifiedpallets/common/src/lib.rsdiffbeforeafterboth

no syntactic changes

modifiedpallets/evm-collection/src/eth.rsdiffbeforeafterboth
18use 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,
modifiedpallets/evm-collection/src/lib.rsdiffbeforeafterboth
1818
19extern crate alloc;19extern crate alloc;
2020
21use 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;
2624
27#[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;
3330
modifiedpallets/evm-contract-helpers/src/lib.rsdiffbeforeafterboth

no syntactic changes

modifiedprimitives/data-structs/src/lib.rsdiffbeforeafterboth

no syntactic changes

modifiedruntime/opal/src/lib.rsdiffbeforeafterboth

no syntactic changes

modifiedtests/src/eth/createCollection.test.tsdiffbeforeafterboth
101 expect(collection.constOnChainSchema.toHuman()).to.be.eq(constShema);101 expect(collection.constOnChainSchema.toHuman()).to.be.eq(constShema);
102 });102 });
103103
104 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();