From a5a3210cfba078d2cedafd12f9074a5a1da3a6fe Mon Sep 17 00:00:00 2001 From: Simon Emanuel Schmid Date: Sat, 20 Feb 2021 13:04:30 +0000 Subject: [PATCH] Test --- .vscode/settings.json | 2 +- contracts/WhaleToken.sol | 8 ++++---- hardhat.config.ts | 4 ++-- package.json | 1 + 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 20a585c..1cc5fb3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { "editor.formatOnSave": true, - "solidity.compileUsingRemoteVersion": "0.7.3" + "solidity.compileUsingRemoteVersion": "soljson-v0.7.6+commit.7338295f" } diff --git a/contracts/WhaleToken.sol b/contracts/WhaleToken.sol index 92390f2..9584aa7 100644 --- a/contracts/WhaleToken.sol +++ b/contracts/WhaleToken.sol @@ -64,10 +64,10 @@ contract WhaleToken is Context, AccessControl, ERC721Burnable, ERC721Pausable { * - the caller must have the `MINTER_ROLE`. */ function mint(address to) public virtual { - require( - hasRole(MINTER_ROLE, _msgSender()), - 'ERC721PresetMinterPauserAutoId: must have minter role to mint' - ); + // require( + // hasRole(MINTER_ROLE, _msgSender()), + // 'ERC721PresetMinterPauserAutoId: must have minter role to mint' + // ); // We cannot just use balanceOf to create the new tokenId because tokens // can be burned (destroyed), so we need a separate counter. diff --git a/hardhat.config.ts b/hardhat.config.ts index d0f1f9e..6645e5a 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -7,7 +7,7 @@ import 'hardhat-typechain'; import '@typechain/ethers-v5'; import addresses from './addresses.json'; -import { WhaleToken } from './generated/typechain'; +import { WhaleToken } from './artifacts/typechain'; // This is a sample Hardhat task. To learn how to create your own go to // https://hardhat.org/guides/create-task.html @@ -61,7 +61,7 @@ export default { }, }, typechain: { - outDir: './generated/typechain', + outDir: './artifacts/typechain', target: 'ethers-v5', }, }; diff --git a/package.json b/package.json index 7134b32..89a8612 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "start": "next start", "compile": "hardhat compile", "test": "hardhat test", + "node": "hardhat node", "hardhat": "hardhat --network localhost", "deploy": "hardhat run --network localhost scripts/deploy.js" },