Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mubaris committed Feb 22, 2021
1 parent 9748d77 commit e74a95c
Show file tree
Hide file tree
Showing 6 changed files with 3,968 additions and 99 deletions.
32 changes: 32 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* @type import('hardhat/config').HardhatUserConfig
*/

require("dotenv").config();
require("@nomiclabs/hardhat-web3");

task("accounts", "Prints accounts", async (_, { web3 }) => {

await hre.network.provider.request({
method: "hardhat_impersonateAccount",
params: [process.env.PUBLIC_ADDRESS]}
)

console.log(await web3.eth.getAccounts())

await web3.eth.sendTransaction({from: process.env.PUBLIC_ADDRESS, to: process.env.PUBLIC_ADDRESS, value: 1000})

});


module.exports = {
solidity: "0.7.3",
networks: {
hardhat: {
forking: {
url: process.env.ETH_NODE_URL,
},
blockGasLimit: 12000000,
},
},
};
Loading

0 comments on commit e74a95c

Please sign in to comment.