The typical solution here is to not accept a hash at all but just recreate it. Something like this: function processDelegatedTransaction( address userAddress, uint8 v, bytes32 r, bytes32 s, uint16 param1, uint16 param2 ) public requireOwner { bytes32 msgHash = keccak256(abi.encodePacked(param1, param2)); require(userAddress ==...


Good question! Hope this helps, or starts a discussion. It says that it watches(subscribes to) for block headers and when comes in it "through the transactions looking to see if any of them touched our contracts". How does it do this? Does it have to retrieve all the transactions in the block, or is there some clever way for it to know this (a merkle ...


If you arrived here looking for a way to print the events emitted during your tests, you can do this with the --show-events flag: truffle test --show-events

Only top voted, non community-wiki answers of a minimum length are eligible