Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint hashLength = 10; //Or whatever you want it to be
- function acceptsHash(bytes memory hash) public{
- require(hash.length == hashLength);
- //The rest of your function goes here...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement