Submitted by eierina, also found by adriro
https://github.com/code-423n4/2023-01-timeswap/blob/3be51465583552cce76816a05170fda7da68596a/packages/v2-token/src/base/ERC1155Enumerable.sol#L92-L101 
https://github.com/code-423n4/2023-01-timeswap/blob/3be51465583552cce76816a05170fda7da68596a/packages/v2-token/src/base/ERC1155Enumerable.sol#L116-L121 
https://github.com/code-423n4/2023-01-timeswap/blob/3be51465583552cce76816a05170fda7da68596a/packages/v2-token/src/base/ERC1155Enumerable.sol#L136-L149
When minting and burning tokens,the ERC1155Enumerable implementation does not correctly update the following states:
In particular:
NOTE: the following test requires some private states of ERC1155Enumerable.sol to be set from private to internal.
Before fix forge test --match-contract BugTest -vvv outputs:
After fix forge test --match-contract BugTest -vvv outputs:
Correct the implementation to update states correctly. Patch provided below for reference.
Picodes (judge) commented:
vhawk19 (Timeswap) confirmed and commented:
