git.delta.rocks / unique-network / refs/commits / 6ef230f131ca

difftreelog

misk: remove token_uri key const.

Trubnikov Sergey2022-07-19parent: #28af23e.patch.diff
in: master

2 files changed

modifiedpallets/common/src/erc.rsdiffbeforeafterboth
--- a/pallets/common/src/erc.rs
+++ b/pallets/common/src/erc.rs
@@ -437,10 +437,6 @@
 	use alloc::format;
 
 	const EXPECT_CONVERT_ERROR: &str = "length < limit";
-	/// Get the "tokenURI" key as [PropertyKey](up_data_structs::PropertyKey).
-	pub fn token_uri_key() -> up_data_structs::PropertyKey {
-		property_key_from_bytes(b"tokenURI").expect(EXPECT_CONVERT_ERROR)
-	}
 
 	pub fn schema_name_key() -> up_data_structs::PropertyKey {
 		property_key_from_bytes(b"schemaName").expect(EXPECT_CONVERT_ERROR)
modifiedpallets/nonfungible/src/erc.rsdiffbeforeafterboth
702 to: address,702 to: address,
703 tokens: Vec<(uint256, string)>,703 tokens: Vec<(uint256, string)>,
704 ) -> Result<bool> {704 ) -> Result<bool> {
705 let key = token_uri_key();705 let key = u_key();
706 let caller = T::CrossAccountId::from_eth(caller);706 let caller = T::CrossAccountId::from_eth(caller);
707 let to = T::CrossAccountId::from_eth(to);707 let to = T::CrossAccountId::from_eth(to);
708 let mut expected_index = <TokensMinted<T>>::get(self.id)708 let mut expected_index = <TokensMinted<T>>::get(self.id)