From af392e5e3c41c9a593c5aea5ab01b88e892a21a7 Mon Sep 17 00:00:00 2001 From: Liron Achdut Date: Mon, 14 Oct 2024 14:27:26 +0700 Subject: [PATCH] check that also the tokenID is not a base type --- contracts/src/protocol/SemiFungible1155.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/src/protocol/SemiFungible1155.sol b/contracts/src/protocol/SemiFungible1155.sol index 7a006dd8..3bac5f9d 100644 --- a/contracts/src/protocol/SemiFungible1155.sol +++ b/contracts/src/protocol/SemiFungible1155.sol @@ -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;