Skip to content

Commit

Permalink
check that also the tokenID is not a base type
Browse files Browse the repository at this point in the history
  • Loading branch information
lirona committed Oct 14, 2024
1 parent 7cb76ef commit af392e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/src/protocol/SemiFungible1155.sol
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ contract SemiFungible1155 is
uint256 _from = fromIDs[i];
uint256 _to = toIDs[i];

if (isBaseType(_from)) revert Errors.NotAllowed();
if (isBaseType(_from) || isBaseType(_to)) revert Errors.NotAllowed();
if (getBaseType(_from) != getBaseType(_to)) revert Errors.TypeMismatch();
unchecked {
++i;
Expand Down

0 comments on commit af392e5

Please sign in to comment.