diff --git a/neo-cli/CLI/MainService.Blockchain.cs b/neo-cli/CLI/MainService.Blockchain.cs index 7d72b77db..1fa4b89d0 100644 --- a/neo-cli/CLI/MainService.Blockchain.cs +++ b/neo-cli/CLI/MainService.Blockchain.cs @@ -189,9 +189,25 @@ public void OnShowTransactionCommand(UInt256 hash) { foreach (var attribute in tx.Transaction.Attributes) { - ConsoleHelper.Info("", " Type: ", $"{attribute.Type}"); - ConsoleHelper.Info("", " AllowMultiple: ", $"{attribute.AllowMultiple}"); - ConsoleHelper.Info("", " Size: ", $"{attribute.Size} Byte(s)"); + if (attribute is Conflicts c) + { + ConsoleHelper.Info("", " Type: ", $"{c.Type}"); + ConsoleHelper.Info("", " Hash: ", $"{c.Hash}"); + ConsoleHelper.Info("", " Size: ", $"{c.Size} Byte(s)"); + } + else if (attribute is OracleResponse o) + { + ConsoleHelper.Info("", " Type: ", $"{o.Type}"); + ConsoleHelper.Info("", " Id: ", $"{o.Id}"); + ConsoleHelper.Info("", " Code: ", $"{o.Code}"); + ConsoleHelper.Info("", " Result: ", $"{Convert.ToBase64String(o.Result.Span)}"); + ConsoleHelper.Info("", " Size: ", $"{o.Size} Byte(s)"); + } + else + { + ConsoleHelper.Info("", " Type: ", $"{attribute.Type}"); + ConsoleHelper.Info("", " Size: ", $"{attribute.Size} Byte(s)"); + } } } ConsoleHelper.Info();