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.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/erc.rs
+++ b/pallets/nonfungible/src/erc.rs
@@ -224,7 +224,7 @@
pallet_common::Pallet::<T>::get_collection_property(self.id, &schema_name_key())
{
let shema_name = shema_name.into_inner();
- shema_name == b"ERC721"
+ shema_name == ERC721_METADATA
} else {
false
}