From e0a6cbc47419990159cf3aae0b10470923656099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Wed, 7 Oct 2026 21:43:00 +0200 Subject: [PATCH] rofl: Pretty print ROFL transaction --- cmd/rofl/deploy.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cmd/rofl/deploy.go b/cmd/rofl/deploy.go index 5b3cf032..7398ae74 100644 --- a/cmd/rofl/deploy.go +++ b/cmd/rofl/deploy.go @@ -308,15 +308,20 @@ var ( } // Prepare transaction. + deployRequest := scheduler.DeployRequest{ + Deployment: machineDeployment, + WipeStorage: roflCommon.WipeStorage, + } + fmt.Printf("Command: %s\n", scheduler.MethodDeploy) + fmt.Printf("Args:\n") + fmt.Println(common.PrettyPrint(npa, " ", deployRequest)) + tx := roflmarket.NewInstanceExecuteCmdsTx(nil, &roflmarket.InstanceExecuteCmds{ Provider: *providerAddr, ID: machineID, Cmds: [][]byte{cbor.Marshal(scheduler.Command{ Method: scheduler.MethodDeploy, - Args: cbor.Marshal(scheduler.DeployRequest{ - Deployment: machineDeployment, - WipeStorage: roflCommon.WipeStorage, - }), + Args: cbor.Marshal(deployRequest), })}, })