Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a Hardhat Ignition module that deploys that contract.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/GOCoin.js

Open the hardhat terminal:

npx hardhat console --network localhost

Create an object to interact with the contract:

const gocoin = await (await ethers.getContractFactory("GOCoin")).attach("CONTRACT ADDRESS HERE")

Now you can call any contract method from the CLI (The use of await is to avoid receiving a Promise)

await gocoin.method()

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages