From 82d58524d1ed9fb1eea3da205cd6baff465a8c04 Mon Sep 17 00:00:00 2001 From: 0xb337r007 <0xe4e5@proton.me> Date: Mon, 15 May 2023 11:21:08 +0200 Subject: [PATCH] don't transfer if it's a souldbound token --- contracts/mvp/CollectibleV1.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/mvp/CollectibleV1.sol b/contracts/mvp/CollectibleV1.sol index 5c65fc7..abe1d61 100644 --- a/contracts/mvp/CollectibleV1.sol +++ b/contracts/mvp/CollectibleV1.sol @@ -117,6 +117,9 @@ contract CollectibleV1 is uint256 firstTokenId, uint256 batchSize ) internal virtual override(ERC721Enumerable) { + if (from != address(0) && to != address(0) && !transferable) { + revert("not transferable"); + } super._beforeTokenTransfer(from, to, firstTokenId, batchSize); }