Guest User

Untitled

a guest
Oct 16th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. function generateHash(nonce, call, bet, balance, sequence) {
  2. const hash = '0x' + ethereumjs.ABI.soliditySHA3(
  3. ['uint256', 'uint256', 'uint256', 'uint256', 'uint256'],
  4. [String(nonce), String(call), String(bet), String(balance), String(sequence)]
  5. ).toString('hex')
  6.  
  7. return hash
  8. }
Add Comment
Please, Sign In to add comment