From a9b2ef9f8fccd879f6bcc3e377a40604b068b648 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 22 May 2026 12:08:03 +0300 Subject: [PATCH] cli: fix output hash endianness in 'util canceltx' Close #3365. Signed-off-by: Anna Shaleva --- cli/util/cancel.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/util/cancel.go b/cli/util/cancel.go index eca0f5dfc3..97dd5210bf 100644 --- a/cli/util/cancel.go +++ b/cli/util/cancel.go @@ -52,7 +52,7 @@ func cancelTx(ctx *cli.Context) error { mainTx, _ := c.GetRawTransactionVerbose(txHash) if mainTx != nil && !mainTx.Blockhash.Equals(util.Uint256{}) { - return cli.Exit(fmt.Errorf("target transaction %s is accepted at block %s", txHash, mainTx.Blockhash.StringLE()), 1) + return cli.Exit(fmt.Errorf("target transaction %s is accepted at block %s", txHash.StringLE(), mainTx.Blockhash.StringLE()), 1) } if mainTx != nil && !mainTx.HasSigner(acc.ScriptHash()) { @@ -92,9 +92,9 @@ func cancelTx(ctx *cli.Context) error { if txHash.Equals(res.Container) { tx, err := c.GetRawTransactionVerbose(txHash) if err != nil { - return cli.Exit(fmt.Errorf("target transaction %s is accepted", txHash), 1) + return cli.Exit(fmt.Errorf("target transaction %s is accepted", txHash.StringLE()), 1) } - return cli.Exit(fmt.Errorf("target transaction %s is accepted at block %s", txHash, tx.Blockhash.StringLE()), 1) + return cli.Exit(fmt.Errorf("target transaction %s is accepted at block %s", txHash.StringLE(), tx.Blockhash.StringLE()), 1) } fmt.Fprintln(ctx.App.Writer, "Conflicting transaction accepted") }