From 6ef230f131ca7a4541a95e4a85dc63cd09dac8c3 Mon Sep 17 00:00:00 2001 From: Trubnikov Sergey Date: Tue, 19 Jul 2022 13:45:44 +0000 Subject: [PATCH] misk: remove token_uri key const. --- --- 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) --- a/pallets/nonfungible/src/erc.rs +++ b/pallets/nonfungible/src/erc.rs @@ -702,7 +702,7 @@ to: address, tokens: Vec<(uint256, string)>, ) -> Result { - let key = token_uri_key(); + let key = u_key(); let caller = T::CrossAccountId::from_eth(caller); let to = T::CrossAccountId::from_eth(to); let mut expected_index = >::get(self.id) -- gitstuff