difftreelog
misk: remove token_uri key const.
in: master
2 files changed
pallets/common/src/erc.rsdiffbeforeafterboth437 use alloc::format;437 use alloc::format;438438439 const EXPECT_CONVERT_ERROR: &str = "length < limit";439 const EXPECT_CONVERT_ERROR: &str = "length < limit";440 /// Get the "tokenURI" key as [PropertyKey](up_data_structs::PropertyKey).441 pub fn token_uri_key() -> up_data_structs::PropertyKey {442 property_key_from_bytes(b"tokenURI").expect(EXPECT_CONVERT_ERROR)443 }444440445 pub fn schema_name_key() -> up_data_structs::PropertyKey {441 pub fn schema_name_key() -> up_data_structs::PropertyKey {446 property_key_from_bytes(b"schemaName").expect(EXPECT_CONVERT_ERROR)442 property_key_from_bytes(b"schemaName").expect(EXPECT_CONVERT_ERROR)pallets/nonfungible/src/erc.rsdiffbeforeafterboth702 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)