diff --git a/commit.md b/commit.md new file mode 100644 index 00000000..9e50f939 --- /dev/null +++ b/commit.md @@ -0,0 +1,3 @@ +2024-06-01T05:12:00+08:00 +随机数:43592 +提交次数:128 \ No newline at end of file diff --git a/hardhat.config.js b/hardhat.config.js index 88aa8347..0a8339d4 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -1,18 +1,34 @@ require("@nomiclabs/hardhat-waffle"); require('dotenv').config() +// This is a sample Hardhat task. To learn how to create your own go to +// https://hardhat.org/guides/create-task.html +task("accounts", "Prints the list of accounts", async (taskArgs, hre) => { + const accounts = await hre.ethers.getSigners(); + + for (const account of accounts) { + console.log(account.address); + } +}); + +// You need to export an object to set up your config +// Go to https://hardhat.org/config/ to learn more + + +// You need to export an object to set up your config +// Go to https://hardhat.org/config/ to learn more + /** - * @type import('hardhat/config').HardhatUserConfig + * 切记私钥不要上传到仓库 切记 切记 */ module.exports = { solidity: "0.8.4", - networks: { "optimism": { - url: process.env.URL, - accounts: [ process.env.MNEMONIC ] + url: process.env.URL, + accounts: [ process.env.MNEMONIC ] } } };