don't transfer if it's a souldbound token

This commit is contained in:
0xb337r007 2023-05-15 11:21:08 +02:00
parent fb0495bf5c
commit 82d58524d1
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ contract CollectibleV1 is
uint256 firstTokenId, uint256 firstTokenId,
uint256 batchSize uint256 batchSize
) internal virtual override(ERC721Enumerable) { ) internal virtual override(ERC721Enumerable) {
if (from != address(0) && to != address(0) && !transferable) {
revert("not transferable");
}
super._beforeTokenTransfer(from, to, firstTokenId, batchSize); super._beforeTokenTransfer(from, to, firstTokenId, batchSize);
} }