Skip to content

Commit

Permalink
Update solidity compiler version
Browse files Browse the repository at this point in the history
  • Loading branch information
okdonga committed Jan 10, 2022
1 parent ab6c1b6 commit 921945d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
3 changes: 1 addition & 2 deletions contracts/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

// Solidity files have to start with this pragma.
// It will be used by the Solidity compiler to validate its version.
pragma solidity ^0.7.0;
pragma solidity ^0.8.0;

// We import this library to be able to use console.log
import "hardhat/console.sol";


// This is the main building block for smart contracts.
contract Token {
// Some string type variables to identify the token.
Expand Down
39 changes: 38 additions & 1 deletion hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,42 @@ require("@nomiclabs/hardhat-waffle");
require("./tasks/faucet");

module.exports = {
solidity: "0.7.3"
// solidity: "0.7.3",
solidity: "0.8.0",
networks: {
hardhat: {
chainId: 1337, // default: 31337 - metamask chain id issue - https://hardhat.org/metamask-issue.html
},
localhost: {
url: "http://localhost:8545",
chainId: 1337,
},
},
rinkeby: {
chainId: 4,
url: process.env.ALCHEMY_RINKEBY_RPC_URL,
accounts: [process.env.RINKEBY_PRIVATE_KEY],
},
kovan: {
chainId: 42,
url: process.env.ALCHEMY_KOVAN_RPC_URL,
accounts: [process.env.KOVAN_PRIVATE_KEY],
saveDeployments: true,
},
mumbai: {
// polygon testnet
chainId: 80001,
url: process.env.ALCHEMY_MUMBAI_RPC_URL,
accounts: [process.env.MUMBAI_PRIVATE_KEY],
},
polygon: {
chainId: 137,
url: process.env.ALCHEMY_POLYGON_RPC_URL,
accounts: [process.env.POLYGON_PRIVATE_KEY],
},
ethereum: {
chainId: 1,
url: process.env.ALCHEMY_RINKEBY_RPC_URL,
accounts: [process.env.RINKEBY_PRIVATE_KEY],
},
};

0 comments on commit 921945d

Please sign in to comment.