Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug add days #22

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ Truffle
2. Start Ganache on port 8545
3. In terminal```truffle migrate```

---------
Deploy on ropsten:
```$ npx hardhat run --network ropsten scripts/deploy.ts```

Verify on ropsten:
```$ npx hardhat verify --network ropsten --constructor-args resources/arguments.js [DEPLOYED ADDRESS```

npx hardhat verify --network ropsten --constructor-args resources/arguments.js 0xC6DBaDc1e1bB4Ec1E3792CDb2Aad09b9b2720e86

#### Deploying to Matic
Deployment to the Mumbai Testnet is configured in ```./truffle-config.js```

Expand Down
239 changes: 90 additions & 149 deletions contracts/SinglePlayerCommit.sol

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import "./tasks/accounts";
import "./tasks/clean";

import "@nomiclabs/hardhat-waffle";
// import "@nomiclabs/hardhat-ethers";
import "hardhat-typechain";
import "solidity-coverage";
import "@nomiclabs/hardhat-etherscan";
import { removeConsoleLog } from 'hardhat-preprocessor';

const chainIds = {
ganache: 1337,
Expand Down Expand Up @@ -74,6 +74,9 @@ const config: HardhatUserConfig = {
sources: "./contracts",
tests: "./test",
},
preprocess: {
eachLine: removeConsoleLog((hre) => hre.network.name !== 'hardhat' && hre.network.name !== 'localhost'),
},
solidity: {
version: "0.6.10",
settings: {
Expand All @@ -90,4 +93,4 @@ const config: HardhatUserConfig = {
},
};

export default config;
export default config;
Loading