From 1486cc0e29f18b7951da8eabaa5940bdb9cc1fba Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 4 Dec 2020 19:36:41 +0300 Subject: [PATCH] [#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 --- pkg/morph/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/morph/client/client.go b/pkg/morph/client/client.go index 1f17d8a3c5..ab61efde8b 100644 --- a/pkg/morph/client/client.go +++ b/pkg/morph/client/client.go @@ -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 }