[#170] morph/client: Print reversed hash in logs

JSON-RPC method takes reversed hash as an input so it is
better to output reveresed hash in logs.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-04 19:36:41 +03:00 committed by Alex Vanin
parent e2547f5bf8
commit 1486cc0e29

View file

@ -81,7 +81,7 @@ func (c *Client) Invoke(contract util.Uint160, fee util.Fixed8, method string, a
c.logger.Debug("neo client invoke",
zap.String("method", method),
zap.Stringer("tx_hash", txHash))
zap.Stringer("tx_hash", txHash.Reverse()))
return nil
}