Skip to content

Simple JS script to get the hashed signature of a contract function

License

Notifications You must be signed in to change notification settings

laurentknauss/getHashSignature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script to get the hash signature of a function in Solidity using Hardhat Deployment framework.

On a first terminal spin up a local hardhat node

npx hardhat node

On a second terminal , deploy the contract on hardhat localhost

npx hardhat dep)loy --network localhost

Get the signature hash of the "set" function located in Store.sol

npx hardhat run scripts/SigHash.js

About

Simple JS script to get the hashed signature of a contract function

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published