Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

general hardhat config js file code

require('@nomiclabs/hardhat-waffle')
// require('@nomiclabs/hardhat-etherscan')
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)
  }
})
/**
 * @type import('hardhat/config').HardhatUserConfig
 */
module.exports = {
  defaultNetwork: 'rinkeby',
  solidity: '0.8.7',
  networks: {
    rinkeby: {
      url: process.env.STAGING_ALCHEMY_KEY,
      accounts: [process.env.PRIVATE_KEY],
    },
  },

  etherscan: {
    apiKey: '37NNWYXCSU7MAYFM3E9SVKP5KDQWHMVS3G',
  },

  mocha: {
    timeout: 100000000,
  },
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: JavaScript get div height dynamically without jQuery 
Javascript :: combining not selector with other jquery 
Javascript :: jquery properties 
Javascript :: var logNums = function(num) {}; 
Javascript :: send a message in the first channel discord.js 
Javascript :: function titleCase 2 
Javascript :: ONDC node 
Javascript :: livewire multiple root elements detected. this is not supported 
Javascript :: NextJs + Material UI, manually refreshing causes 
Javascript :: javascript auto complete not working 
Javascript :: JSON of first block in cryptocurrency blockchain 
Javascript :: Backbone Model Fetch 
Javascript :: how to write code for browser back button in javascript 
Javascript :: Check if a number starts with another number or not js 
Javascript :: for-loop-how-to-loop-through-an-array-in-js 
Javascript :: c# to javascript object 
Javascript :: js onclick add table row 
Javascript :: clear console javascript 
Javascript :: newtonsoft json parse string 
Javascript :: react native new project 
Javascript :: how to upload file in node js 
Javascript :: getcontext in javascript 
Javascript :: javascript post request 
Javascript :: react native file pdf to base64 
Javascript :: findPotentialLikes javascript 
Javascript :: JavaScript Add Methods to a Constructor Function Using Prototype 
Javascript :: javascript typeof operator returns function 
Javascript :: JavaScript HTML DOM Node Lists 
Javascript :: nodjs : Stream for big file 
Javascript :: javasrcipt jpg resize 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =