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
| { require("@nomiclabs/hardhat-waffle");
module.exports = { solidity: "0.7.3", networks: { reposten: { url: `https://eth-ropsten.alchemyapi.io/v2/${ALCHEMY_API_KEY}`, accounts: [`0x${ROPSTEN_PRIVATE_KEY}`], httpHeaders: { Authorization: `Bearer 自定义http header`, }, }, private: { url: 'http://127.0.0.1:8545', accounts: ['0x111111111'] } }, path: { sources: './contracts', tests: './test', cache: './cache', artifacts: './artifacts', }, mocha: { timeout: 20000 } }; }
|