git.delta.rocks / unique-network / refs/commits / 68abc1e2a360

difftreelog

feat use returns kw with via kw

Daniel Shiposha2022-09-19parent: #d80ffd9.patch.diff
in: master

4 files changed

modifiedcrates/evm-coder/procedural/src/solidity_interface.rsdiffbeforeafterboth
175 parenthesized!(contents in input);175 parenthesized!(contents in input);
176176
177 let method = contents.parse::<Ident>()?;177 let method = contents.parse::<Ident>()?;
178 contents.parse::<Token![,]>()?;178 contents.parse::<kw::returns>()?;
179 let ty = contents.parse::<Type>()?;179 let ty = contents.parse::<Type>()?;
180180
181 if via.replace((ty, method)).is_some() {181 if via.replace((ty, method)).is_some() {
536 syn::custom_keyword!(weight);536 syn::custom_keyword!(weight);
537537
538 syn::custom_keyword!(via);538 syn::custom_keyword!(via);
539 syn::custom_keyword!(returns);
539 syn::custom_keyword!(name);540 syn::custom_keyword!(name);
540 syn::custom_keyword!(is);541 syn::custom_keyword!(is);
541 syn::custom_keyword!(inline_is);542 syn::custom_keyword!(inline_is);
modifiedpallets/fungible/src/erc.rsdiffbeforeafterboth
199 ERC20,199 ERC20,
200 ERC20Mintable,200 ERC20Mintable,
201 ERC20UniqueExtensions,201 ERC20UniqueExtensions,
202 Collection(via(common_mut, CollectionHandle<T>)),202 Collection(via(common_mut returns CollectionHandle<T>)),
203 )203 )
204)]204)]
205impl<T: Config> FungibleHandle<T> where T::AccountId: From<[u8; 32]> + AsRef<[u8; 32]> {}205impl<T: Config> FungibleHandle<T> where T::AccountId: From<[u8; 32]> + AsRef<[u8; 32]> {}
modifiedpallets/nonfungible/src/erc.rsdiffbeforeafterboth
736 ERC721UniqueExtensions,736 ERC721UniqueExtensions,
737 ERC721Mintable,737 ERC721Mintable,
738 ERC721Burnable,738 ERC721Burnable,
739 Collection(via(common_mut, CollectionHandle<T>)),739 Collection(via(common_mut returns CollectionHandle<T>)),
740 TokenProperties,740 TokenProperties,
741 )741 )
742)]742)]
modifiedpallets/refungible/src/erc.rsdiffbeforeafterboth
785 ERC721UniqueExtensions,785 ERC721UniqueExtensions,
786 ERC721Mintable,786 ERC721Mintable,
787 ERC721Burnable,787 ERC721Burnable,
788 Collection(via(common_mut, CollectionHandle<T>)),788 Collection(via(common_mut returns CollectionHandle<T>)),
789 TokenProperties,789 TokenProperties,
790 )790 )
791)]791)]