Skip to content

Commit

Permalink
migrate burn redeem tests to forge (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwhchung authored May 8, 2024
1 parent 1e02e69 commit e90bab7
Show file tree
Hide file tree
Showing 5 changed files with 3,048 additions and 4,065 deletions.
2 changes: 1 addition & 1 deletion packages/manifold/contracts/burnredeem/BurnRedeemCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ abstract contract BurnRedeemCore is ERC165, AdminControl, ReentrancyGuard, IBurn
for (uint256 i; i < burnTokens.length;) {
BurnToken memory burnToken = burnTokens[i];
BurnItem memory burnItem = burnRedeemInstance.burnSet[burnToken.groupIndex].items[burnToken.itemIndex];
if (burnToken.id != tokenIds[i]) {
if (burnToken.contractAddress != msg.sender || burnToken.id != tokenIds[i]) {
revert InvalidToken(tokenIds[i]);
}
if (burnItem.amount * burnRedeemCount != values[i]) {
Expand Down
Loading

0 comments on commit e90bab7

Please sign in to comment.