[#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 <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-04-02 14:27:26 +03:00 committed by Leonard Lyubich
parent 3aae60d517
commit ee29ee2c47
2 changed files with 2 additions and 2 deletions

View file

@ -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
}

View file

@ -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
}