difftreelog
chore fix cargo fmt
in: master
2 files changed
pallets/refungible/src/erc_token.rsdiffbeforeafterboth46#[derive(ToLog)]46#[derive(ToLog)]47pub enum ERC20Events {47pub enum ERC20Events {48 /// @dev This event is emitted when the amount of tokens (value) is sent48 /// @dev This event is emitted when the amount of tokens (value) is sent49 /// from the from address to the to address. In the case of minting new 49 /// from the from address to the to address. In the case of minting new50 /// tokens, the transfer is usually from the 0 address while in the case50 /// tokens, the transfer is usually from the 0 address while in the case51 /// of burning tokens the transfer is to 0.51 /// of burning tokens the transfer is to 0.52 Transfer {52 Transfer {68}68}696970/// @title Standard ERC20 token70/// @title Standard ERC20 token71/// 71///72/// @dev Implementation of the basic standard token.72/// @dev Implementation of the basic standard token.73/// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md73/// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md74#[solidity_interface(name = "ERC20", events(ERC20Events))]74#[solidity_interface(name = "ERC20", events(ERC20Events))]pallets/refungible/src/lib.rsdiffbeforeafterboth--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -95,15 +95,19 @@
use frame_support::{BoundedVec, ensure, fail, storage::with_transaction, transactional};
use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};
use pallet_evm_coder_substrate::WithRecorder;
-use pallet_common::{CommonCollectionOperations, Error as CommonError, Event as CommonEvent, Pallet as PalletCommon};
+use pallet_common::{
+ CommonCollectionOperations, Error as CommonError, Event as CommonEvent, Pallet as PalletCommon,
+};
use pallet_structure::Pallet as PalletStructure;
use scale_info::TypeInfo;
use sp_core::H160;
use sp_runtime::{ArithmeticError, DispatchError, DispatchResult, TransactionOutcome};
use sp_std::{vec::Vec, vec, collections::btree_map::BTreeMap};
use up_data_structs::{
- AccessMode, budget::Budget, CollectionId, CreateCollectionData, CreateRefungibleExData, CustomDataLimit, mapping::TokenAddressMapping, MAX_REFUNGIBLE_PIECES, TokenId,
- Property, PropertyKey, PropertyKeyPermission, PropertyPermission, PropertyScope, PropertyValue, TrySetProperty
+ AccessMode, budget::Budget, CollectionId, CreateCollectionData, CreateRefungibleExData,
+ CustomDataLimit, mapping::TokenAddressMapping, MAX_REFUNGIBLE_PIECES, TokenId, Property,
+ PropertyKey, PropertyKeyPermission, PropertyPermission, PropertyScope, PropertyValue,
+ TrySetProperty,
};
pub use pallet::*;