git.delta.rocks / unique-network / refs/commits / 55c059c03e4f

difftreelog

Cargo fmt

Trubnikov Sergey2022-06-07parent: #3b810a7.patch.diff
in: master

3 files changed

modifiedpallets/common/src/erc.rsdiffbeforeafterboth
49#[solidity_interface(name = "Collection")]49#[solidity_interface(name = "Collection")]
50impl<T: Config> CollectionHandle<T>50impl<T: Config> CollectionHandle<T>
51where51where
52 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)
modifiedpallets/fungible/src/erc.rsdiffbeforeafterboth
162159
163impl<T: Config> CommonEvmHandler for FungibleHandle<T>160impl<T: Config> CommonEvmHandler for FungibleHandle<T>
164where161where
165 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");
168165
modifiedpallets/nonfungible/src/erc.rsdiffbeforeafterboth
594591
595impl<T: Config> CommonEvmHandler for NonfungibleHandle<T>592impl<T: Config> CommonEvmHandler for NonfungibleHandle<T>
596where593where
597 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