Xahau / xahaud

Codebase for Xahaud - The consensus, RPC & blockchain app for the Xahau network.
https://xahau.network
ISC License
22 stars 11 forks source link

hook_hash (JS) doesn't return (OUT_OF_BOUNDS) #335

Closed WietseWind closed 1 month ago

WietseWind commented 1 month ago

The call below returns -7, out of bounds

trace('hook hash', hook_hash())
dangell7 commented 1 month ago

-7 is INVALID_ARGUMENT. You want it to return OUT_OF_BOUNDS instead?

tequdev commented 1 month ago
trace('hook hash', hook_hash(0), false)

->

hook hash: [157,69,121,151,186,88,153,80,225,240,78,216,9,237,80,63,116,131,1,198,186,93,243,182,227,201,167,175,88,131,99,46]
WietseWind commented 1 month ago

Thanks guys, never mind, I'm with stupid, should have passed -1