修正nft合约lock功能无效的bug
This commit is contained in:
parent
65a0d36702
commit
56f84d850d
@ -161,6 +161,7 @@ contract BEBadge is AccessControl, ERC721Enumerable {
|
||||
uint256 firstTokenId,
|
||||
uint256 batchSize
|
||||
) internal virtual override {
|
||||
require(!lockedTokens[firstTokenId], "Can not transfer locked token");
|
||||
super._beforeTokenTransfer(from, to, firstTokenId, batchSize);
|
||||
}
|
||||
|
||||
|
@ -126,6 +126,7 @@ contract NFT is AccessControl, ERC721Enumerable {
|
||||
uint256 firstTokenId,
|
||||
uint256 batchSize
|
||||
) internal virtual override {
|
||||
require(!lockedTokens[firstTokenId], "Can not transfer locked token");
|
||||
super._beforeTokenTransfer(from, to, firstTokenId, batchSize);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user