Skip to content

Commit

Permalink
Merge pull request #35 from InstaDApp/more-tests
Browse files Browse the repository at this point in the history
Add more tests
  • Loading branch information
thrilok209 authored Feb 22, 2021
2 parents 9748d77 + 7c976ad commit 6418602
Show file tree
Hide file tree
Showing 5 changed files with 3,988 additions and 182 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 6418602

Please sign in to comment.