Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/InstaDApp/dsa-connect
Browse files Browse the repository at this point in the history
  • Loading branch information
thrilok209 committed Feb 24, 2021
2 parents 4a3614d + 6418602 commit 832c16f
Show file tree
Hide file tree
Showing 6 changed files with 3,989 additions and 183 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Publish if version has been updated
uses: ishanjain28/[email protected].1
uses: ishanjain28/[email protected].3
with:
workspace: "."
publish_command: "npm"
Expand Down
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 832c16f

Please sign in to comment.