Hi guys maybe someone know how to get in hardhat function signature? Ideally I have tests where I would like to pass function name example: "transfer(address,uint256)" or smth like that and it would call it. I actually need this kind of wrapper since I am playing around with eip712 and want to test calling different functions
Jul 18, 2022, 2:21 PM
bytes4(keccack255(bytes('func()')))
Jul 18, 2022, 2:30 PM
thanks but how to call that on contract?
I have contract instance and want to call such function, with callStatic or what? 🤔
using hardhat with typechain btw
I have contract instance and want to call such function, with callStatic or what? 🤔
using hardhat with typechain btw
Jul 18, 2022, 2:35 PM
first 4 bytes of the hash of the string myFunc(string,uint256)
no network required
no network required
Jul 18, 2022, 3:22 PM
If you have the contract instance, just call it directly?
Oh you want to make a low level call?
Jul 18, 2022, 3:31 PM