difftreelog
Cargo fmt
in: master
3 files changed
pallets/common/src/erc.rsdiffbeforeafterboth49#[solidity_interface(name = "Collection")]49#[solidity_interface(name = "Collection")]50impl<T: Config> CollectionHandle<T>50impl<T: Config> CollectionHandle<T>51where51where52 T::AccountId: From<[u8; 32]>52 T::AccountId: From<[u8; 32]>,53{53{54 fn set_collection_property(&mut self, caller: caller, key: string, value: bytes) -> Result<()> {54 fn set_collection_property(&mut self, caller: caller, key: string, value: bytes) -> Result<()> {55 let caller = T::CrossAccountId::from_eth(caller);55 let caller = T::CrossAccountId::from_eth(caller);233 true => {234 true => {234 let mut bv = OwnerRestrictedSet::new();235 let mut bv = OwnerRestrictedSet::new();235 for i in collections {236 for i in collections {236 bv.try_insert(crate::eth::map_eth_to_id(&i).ok_or_else(|| Error::Revert(237 bv.try_insert(crate::eth::map_eth_to_id(&i).ok_or_else(|| {237 "Can't convert address into collection id".into(),238 Error::Revert("Can't convert address into collection id".into())238 ))?)239 })?)239 .map_err(|e| Error::Revert(format!("{:?}", e)))?;240 .map_err(|e| Error::Revert(format!("{:?}", e)))?;240 }241 }241 NestingRule::OwnerRestricted (bv)242 NestingRule::OwnerRestricted (bv)pallets/fungible/src/erc.rsdiffbeforeafterboth162159163impl<T: Config> CommonEvmHandler for FungibleHandle<T>160impl<T: Config> CommonEvmHandler for FungibleHandle<T>164where161where165 T::AccountId: From<[u8; 32]>162 T::AccountId: From<[u8; 32]>,166{163{167 const CODE: &'static [u8] = include_bytes!("./stubs/UniqueFungible.raw");164 const CODE: &'static [u8] = include_bytes!("./stubs/UniqueFungible.raw");168165pallets/nonfungible/src/erc.rsdiffbeforeafterboth594591595impl<T: Config> CommonEvmHandler for NonfungibleHandle<T>592impl<T: Config> CommonEvmHandler for NonfungibleHandle<T>596where593where597 T::AccountId: From<[u8; 32]>594 T::AccountId: From<[u8; 32]>,598{595{599 const CODE: &'static [u8] = include_bytes!("./stubs/UniqueNFT.raw");596 const CODE: &'static [u8] = include_bytes!("./stubs/UniqueNFT.raw");600597