difftreelog
misk: rename property value "ERC721" -> "ERC721Metadata"
in: master
2 files changed
pallets/common/src/erc.rsdiffbeforeafterboth458 property_key_from_bytes(b"s").expect(EXPECT_CONVERT_ERROR)458 property_key_from_bytes(b"s").expect(EXPECT_CONVERT_ERROR)459 }459 }460460461 pub const ERC721_METADATA: &[u8] = b"ERC721Metadata";461 pub fn erc721_value() -> up_data_structs::PropertyValue {462 pub fn erc721_value() -> up_data_structs::PropertyValue {462 property_value_from_bytes(b"ERC721").expect(EXPECT_CONVERT_ERROR)463 property_value_from_bytes(ERC721_METADATA).expect(EXPECT_CONVERT_ERROR)463 }464 }464465465 pub fn property_key_from_bytes(bytes: &[u8]) -> Result<up_data_structs::PropertyKey> {466 pub fn property_key_from_bytes(bytes: &[u8]) -> Result<up_data_structs::PropertyKey> {pallets/nonfungible/src/erc.rsdiffbeforeafterboth224 pallet_common::Pallet::<T>::get_collection_property(self.id, &schema_name_key())224 pallet_common::Pallet::<T>::get_collection_property(self.id, &schema_name_key())225 {225 {226 let shema_name = shema_name.into_inner();226 let shema_name = shema_name.into_inner();227 shema_name == b"ERC721"227 shema_name == ERC721_METADATA228 } else {228 } else {229 false229 false230 }230 }