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
--- a/pallets/fungible/src/erc.rs
+++ b/pallets/fungible/src/erc.rs
@@ -199,7 +199,7 @@
 		ERC20,
 		ERC20Mintable,
 		ERC20UniqueExtensions,
-		Collection(via(common_mut, CollectionHandle<T>)),
+		Collection(via(common_mut returns CollectionHandle<T>)),
 	)
 )]
 impl<T: Config> FungibleHandle<T> where T::AccountId: From<[u8; 32]> + AsRef<[u8; 32]> {}
modifiedpallets/nonfungible/src/erc.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/erc.rs
+++ b/pallets/nonfungible/src/erc.rs
@@ -736,7 +736,7 @@
 		ERC721UniqueExtensions,
 		ERC721Mintable,
 		ERC721Burnable,
-		Collection(via(common_mut, CollectionHandle<T>)),
+		Collection(via(common_mut returns CollectionHandle<T>)),
 		TokenProperties,
 	)
 )]
modifiedpallets/refungible/src/erc.rsdiffbeforeafterboth
--- a/pallets/refungible/src/erc.rs
+++ b/pallets/refungible/src/erc.rs
@@ -785,7 +785,7 @@
 		ERC721UniqueExtensions,
 		ERC721Mintable,
 		ERC721Burnable,
-		Collection(via(common_mut, CollectionHandle<T>)),
+		Collection(via(common_mut returns CollectionHandle<T>)),
 		TokenProperties,
 	)
 )]