git.delta.rocks / unique-network / refs/commits / cfd2e2a88c56

difftreelog

fix reserved field 0 in collection helpers

Daniel Shiposha2023-10-18parent: #1524c99.patch.diff
in: master

2 files changed

modifiedjs-packages/tests/eth/api/CollectionHelpers.soldiffbeforeafterboth
132type CollectionFlags is uint8;132type CollectionFlags is uint8;
133133
134library CollectionFlagsLib {134library CollectionFlagsLib {
135 /// Tokens in foreign collections can be transferred, but not burnt
136 CollectionFlags constant foreignField = CollectionFlags.wrap(128);135 CollectionFlags constant reservedField0 = CollectionFlags.wrap(128);
137 /// Supports ERC721Metadata136 /// Supports ERC721Metadata
138 CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);137 CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);
139 /// External collections can't be managed using `unique` api138 /// External collections can't be managed using `unique` api
modifiedpallets/unique/src/eth/stubs/CollectionHelpers.soldiffbeforeafterboth
--- a/pallets/unique/src/eth/stubs/CollectionHelpers.sol
+++ b/pallets/unique/src/eth/stubs/CollectionHelpers.sol
@@ -199,8 +199,7 @@
 type CollectionFlags is uint8;
 
 library CollectionFlagsLib {
-	/// Tokens in foreign collections can be transferred, but not burnt
-	CollectionFlags constant foreignField = CollectionFlags.wrap(128);
+	CollectionFlags constant reservedField0 = CollectionFlags.wrap(128);
 	/// Supports ERC721Metadata
 	CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64);
 	/// External collections can't be managed using `unique` api