forked from crytic/properties
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCryticTest.sol
37 lines (32 loc) · 1.12 KB
/
CryticTest.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity ^0.8.0;
import "@crytic/properties/contracts/ERC721/internal/properties/ERC721BasicProperties.sol";
import "./ExampleToken.sol";
contract CryticERC721InternalHarness is ExampleToken, CryticERC721BasicProperties {
using Address for address;
constructor() {
isMintableOrBurnable = true;
safeReceiver = new MockReceiver(true);
unsafeReceiver = new MockReceiver(false);
}
function _customMint(address to, uint256 amount) internal virtual {
mint(to, amount);
}
// The following functions are overrides required by Solidity.
function _beforeTokenTransfer(address from, address to, uint256 tokenId, uint256 batchSize)
internal
virtual
override(ExampleToken, CryticERC721TestBase)
{
super._beforeTokenTransfer(from, to, tokenId, batchSize);
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ExampleToken, CryticERC721TestBase)
returns (bool)
{
return super.supportsInterface(interfaceId);
}
}