Fix invalid argument order

`gethash` takes key as first argument and takes hash as second argument.