From ee29ee2c47bc5fedfc8c2d2c417ccd22ed09b0bf Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 2 Apr 2021 14:27:26 +0300 Subject: [PATCH] [#456] morph/client: Print transaction hashes in LE neo-go JSON RPC server expect all hashes in LE, e.g. in `getapplicationlog` method. Signed-off-by: Alex Vanin --- pkg/morph/client/client.go | 2 +- pkg/morph/client/notary.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/morph/client/client.go b/pkg/morph/client/client.go index 7e78e44dd..d1d9fea04 100644 --- a/pkg/morph/client/client.go +++ b/pkg/morph/client/client.go @@ -155,7 +155,7 @@ func (c *Client) TransferGas(receiver util.Uint160, amount fixedn.Fixed8) error c.logger.Debug("native gas transfer invoke", zap.String("to", receiver.StringLE()), - zap.Stringer("tx_hash", txHash)) + zap.Stringer("tx_hash", txHash.Reverse())) return nil } diff --git a/pkg/morph/client/notary.go b/pkg/morph/client/notary.go index 24d41344b..72b25029e 100644 --- a/pkg/morph/client/notary.go +++ b/pkg/morph/client/notary.go @@ -119,7 +119,7 @@ func (c *Client) DepositNotary(amount fixedn.Fixed8, delta uint32) error { c.logger.Debug("notary deposit invoke", zap.Int64("amount", int64(amount)), zap.Uint32("expire_at", bc+delta), - zap.Stringer("tx_hash", txHash)) + zap.Stringer("tx_hash", txHash.Reverse())) return nil }