Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function generateHash(nonce, call, bet, balance, sequence) {
- const hash = '0x' + ethereumjs.ABI.soliditySHA3(
- ['uint256', 'uint256', 'uint256', 'uint256', 'uint256'],
- [String(nonce), String(call), String(bet), String(balance), String(sequence)]
- ).toString('hex')
- return hash
- }
Add Comment
Please, Sign In to add comment