laurentknauss / getHashSignature

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 67.8%Language:Solidity 32.2%