From f566769d08487ab4211030ddb5bddf108f764b08 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Thu, 19 Oct 2023 10:42:24 +0000 Subject: [PATCH] Revert "fix: reserved field 0 in collection helpers" This reverts commit 667f3fe0fb1cf4b03bff7a51a3438667ccde255a. --- --- a/js-packages/tests/eth/api/CollectionHelpers.sol +++ b/js-packages/tests/eth/api/CollectionHelpers.sol @@ -132,7 +132,8 @@ type CollectionFlags is uint8; library CollectionFlagsLib { - CollectionFlags constant reservedField0 = CollectionFlags.wrap(128); + /// Tokens in foreign collections can be transferred, but not burnt + CollectionFlags constant foreignField = CollectionFlags.wrap(128); /// Supports ERC721Metadata CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64); /// External collections can't be managed using `unique` api --- a/pallets/unique/src/eth/stubs/CollectionHelpers.sol +++ b/pallets/unique/src/eth/stubs/CollectionHelpers.sol @@ -199,7 +199,8 @@ type CollectionFlags is uint8; library CollectionFlagsLib { - CollectionFlags constant reservedField0 = CollectionFlags.wrap(128); + /// Tokens in foreign collections can be transferred, but not burnt + CollectionFlags constant foreignField = CollectionFlags.wrap(128); /// Supports ERC721Metadata CollectionFlags constant erc721metadataField = CollectionFlags.wrap(64); /// External collections can't be managed using `unique` api -- gitstuff