-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhardhat.config.js
35 lines (34 loc) · 989 Bytes
/
hardhat.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require('@nomiclabs/hardhat-ethers')
require('@eth-optimism/hardhat-ovm')
module.exports = {
networks: {
hardhat: {
accounts: {
mnemonic: 'test test test test test test test test test test test junk'
}
},
// Add this network to your config!
optimism: {
url: 'http://127.0.0.1:8545',
accounts: {
mnemonic: 'test test test test test test test test test test test junk'
},
// This sets the gas price to 0 for all transactions on L2. We do this
// because account balances are not automatically initiated with an ETH
// balance.
gasPrice: 0,
ovm: true // This sets the network as using the ovm and ensure contract will be compiled against that.
},
eth: {
url: 'http://127.0.0.1:9545',
accounts: {
mnemonic: 'test test test test test test test test test test test junk'
},
gasPrice: 10,
}
},
solidity: '0.7.6',
ovm: {
solcVersion: '0.7.6'
}
}