diff --git a/neo-cli/CLI/Helper.cs b/neo-cli/CLI/Helper.cs index 391fd0d0e..b1759d746 100644 --- a/neo-cli/CLI/Helper.cs +++ b/neo-cli/CLI/Helper.cs @@ -10,5 +10,7 @@ public static bool IsYes(this string input) return input == "yes" || input == "y"; } + + public static string ToBase64String(this byte[] input) => System.Convert.ToBase64String(input); } } diff --git a/neo-cli/CLI/MainService.cs b/neo-cli/CLI/MainService.cs index b9f6f38e2..a08fecc4b 100644 --- a/neo-cli/CLI/MainService.cs +++ b/neo-cli/CLI/MainService.cs @@ -480,7 +480,7 @@ private void SendTransaction(byte[] script, UInt160 account = null) try { Transaction tx = CurrentWallet.MakeTransaction(script, account, signers); - Console.WriteLine($"Invoking script with: '{tx.Script.ToHexString()}'"); + Console.WriteLine($"Invoking script with: '{tx.Script.ToBase64String()}'"); using (ApplicationEngine engine = ApplicationEngine.Run(tx.Script, container: tx)) { @@ -529,7 +529,7 @@ private StackItem OnInvokeWithResult(UInt160 scriptHash, string operation, IVeri { scriptBuilder.EmitAppCall(scriptHash, operation, parameters.ToArray()); script = scriptBuilder.ToArray(); - Console.WriteLine($"Invoking script with: '{script.ToHexString()}'"); + Console.WriteLine($"Invoking script with: '{script.ToBase64String()}'"); } if (verificable is Transaction tx)