This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; | |
import '@openzeppelin/contracts/access/Ownable.sol'; | |
contract Reserve is ERC721Enumerable, Ownable { | |
string _baseTokenURI; | |
uint256 private _price = 0.04 ether; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; | |
contract SigTest { | |
using ECDSA for bytes32; | |
address private systemAddress; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {ethers} from "hardhat"; | |
import chai from "chai"; | |
import {solidity} from "ethereum-waffle"; | |
import {SigTest} from "../typechain/SigTest"; | |
chai.use(solidity); | |
describe("SigTest", () => { | |
let sigTest: SigTest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.0; | |
contract A { | |
address systemAddress; | |
function setSystemAddress(address systemAddress_) public { | |
systemAddress = systemAddress_; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
/* | |
This code is untested, feel free to use it, but do so at your own risk | |
*/ | |
contract Random { | |
uint256[] tokens = new uint256[](100); |