Skip to content

Commit

Permalink
ref: contracts compile with adjusted configs
Browse files Browse the repository at this point in the history
  • Loading branch information
RasenGUY committed Nov 22, 2023
1 parent 6870c1e commit 72487dd
Show file tree
Hide file tree
Showing 111 changed files with 13,319 additions and 16,131 deletions.
3 changes: 1 addition & 2 deletions contracts/dummies/WegaERC20Dummy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract WegaERC20Dummy is ERC20, Ownable {
constructor(address[] memory receivers) ERC20("WegaERC20Dummy", "DUMMY") {
constructor(address[] memory receivers) ERC20("WegaERC20Dummy", "DUMMY") Ownable(_msgSender()) {
for(uint256 i = 0; i < receivers.length; i++){
_mint(receivers[i], 10000 * 10 ** 18);
}
}

function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
Expand Down
7 changes: 5 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require("@nomicfoundation/hardhat-toolbox");
require('@openzeppelin/hardhat-upgrades');


import path from 'path';
import fs from 'fs';
import { HardhatUserConfig } from 'hardhat/types/config';
Expand Down Expand Up @@ -50,8 +51,10 @@ declare module 'hardhat/types/config' {
// import '@typechain/hardhat';
// import '@nomiclabs/hardhat-ethers';
// import '@nomiclabs/hardhat-waffle';
// import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-toolbox";
import '@nomiclabs/hardhat-solhint';
// import "@nomicfoundation/hardhat-verify"

// import '@nomiclabs/hardhat-etherscan';

// import '@openzeppelin/hardhat-upgrades';
Expand Down Expand Up @@ -247,7 +250,7 @@ const config: HardhatUserConfig = {
},
typechain: {
outDir: 'types',
target: 'ethers-v5',
target: 'ethers-v6',
},
gasReporter: {
enabled: argv.enableGasReport,
Expand Down
Loading

0 comments on commit 72487dd

Please sign in to comment.