Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. uint hashLength = 10; //Or whatever you want it to be
  2. function acceptsHash(bytes memory hash) public{
  3. require(hash.length == hashLength);
  4.  
  5. //The rest of your function goes here...
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement