Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidsi committed Feb 20, 2021
1 parent 1594787 commit a5a3210
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"editor.formatOnSave": true,
"solidity.compileUsingRemoteVersion": "0.7.3"
"solidity.compileUsingRemoteVersion": "soljson-v0.7.6+commit.7338295f"
}
8 changes: 4 additions & 4 deletions contracts/WhaleToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -61,7 +61,7 @@ export default {
},
},
typechain: {
outDir: './generated/typechain',
outDir: './artifacts/typechain',
target: 'ethers-v5',
},
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit a5a3210

Please sign in to comment.