From cfd2e2a88c56671dae5a78d900202f5adac753cc Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Wed, 18 Oct 2023 15:33:08 +0000 Subject: [PATCH] fix: reserved field 0 in collection helpers --- --- a/js-packages/tests/eth/api/CollectionHelpers.sol +++ b/js-packages/tests/eth/api/CollectionHelpers.sol @@ -132,8 +132,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 --- 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 -- gitstuff