From 639e9502aa8935876305bd6a6b7fc06a6794e62b 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 bb3a7087..99e048ce 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;