Skip to content

Kerala-Blockchain-Academy/nft-contract-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

NFT-Contract-Testing

Truffle

Go to the truffle folder

cd truffle

Install truffle globally

npm install -g truffle

Test the contract

truffle test

Deploy the contract (edit truffle-config.js at first)

truffle migrate

Debug transaction

truffle debug <transactionHash>
Hardhat

Go to the hardhat folder

cd hardhat

Install dependencies

npm install

Test the contract

npx hardhat test

Measure code coverage

npx hardhat coverage

Run blockchain simulation (alternative of ganache)

npx hardhat node

Deploy the contract (edit hardhat.config.js at first)

npx hardhat run script/deploy.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published