From 6bf342bf91f2bf7340f7eb553aaa56f9a3bca20e Mon Sep 17 00:00:00 2001 From: D-Stacks Date: Tue, 7 Jun 2022 19:15:58 +0200 Subject: [PATCH] fix fmt --- cmd/kaspawallet/broadcast.go | 2 +- cmd/kaspawallet/create_unsigned_tx.go | 2 +- cmd/kaspawallet/send.go | 4 ++-- cmd/kaspawallet/sweep.go | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/kaspawallet/broadcast.go b/cmd/kaspawallet/broadcast.go index 938651505..474db1e8e 100644 --- a/cmd/kaspawallet/broadcast.go +++ b/cmd/kaspawallet/broadcast.go @@ -43,7 +43,7 @@ func broadcast(conf *broadcastConfig) error { } response, err := daemonClient.Broadcast(ctx, &pb.BroadcastRequest{ - Id: uuid.String(), + Id: uuid.String(), Transactions: transactions}) if err != nil { return err diff --git a/cmd/kaspawallet/create_unsigned_tx.go b/cmd/kaspawallet/create_unsigned_tx.go index 25e45a949..24a53f72c 100644 --- a/cmd/kaspawallet/create_unsigned_tx.go +++ b/cmd/kaspawallet/create_unsigned_tx.go @@ -22,7 +22,7 @@ func createUnsignedTransaction(conf *createUnsignedTransactionConfig) error { sendAmountSompi := uint64(conf.SendAmount * constants.SompiPerKaspa) response, err := daemonClient.CreateUnsignedTransactions(ctx, &pb.CreateUnsignedTransactionsRequest{ - Id: uuid.String(), + Id: uuid.String(), From: conf.FromAddresses, Address: conf.ToAddress, Amount: sendAmountSompi, diff --git a/cmd/kaspawallet/send.go b/cmd/kaspawallet/send.go index 4bc77a685..4f9e18f2a 100644 --- a/cmd/kaspawallet/send.go +++ b/cmd/kaspawallet/send.go @@ -35,7 +35,7 @@ func send(conf *sendConfig) error { createUnsignedTransactionsResponse, err := daemonClient.CreateUnsignedTransactions(ctx, &pb.CreateUnsignedTransactionsRequest{ - Id: uuid.String(), + Id: uuid.String(), From: conf.FromAddresses, Address: conf.ToAddress, Amount: sendAmountSompi, @@ -66,7 +66,7 @@ func send(conf *sendConfig) error { } response, err := daemonClient.Broadcast(ctx, &pb.BroadcastRequest{ - Id: uuid.String(), + Id: uuid.String(), Transactions: signedTransactions, }) if err != nil { diff --git a/cmd/kaspawallet/sweep.go b/cmd/kaspawallet/sweep.go index 57af769fe..94831a086 100644 --- a/cmd/kaspawallet/sweep.go +++ b/cmd/kaspawallet/sweep.go @@ -58,7 +58,7 @@ func sweep(conf *sweepConfig) error { defer cancel() getExternalSpendableUTXOsResponse, err := daemonClient.GetExternalSpendableUTXOs(ctx, &pb.GetExternalSpendableUTXOsRequest{ - Id: uuid.String(), + Id: uuid.String(), Address: address.String(), }) if err != nil { @@ -105,7 +105,7 @@ func sweep(conf *sweepConfig) error { fmt.Println("\tTo:\t", toAddress) response, err := daemonClient.Broadcast(ctx, &pb.BroadcastRequest{ - Id: uuid.String(), + Id: uuid.String(), IsDomain: true, Transactions: serializedSplitTransactions, })