From b898df9914314f18896eba703c6246cc096b0645 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Fri, 7 Jun 2024 12:02:12 -0400 Subject: [PATCH] chore: make golines (#217) Signed-off-by: Chris Gianelloni --- Makefile | 6 ++++++ submit/tx.go | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4bebba3..5db061e 100644 --- a/Makefile +++ b/Makefile @@ -34,10 +34,16 @@ clean: format: mod-tidy go fmt ./... +golines: + golines -w --ignore-generated --chain-split-dots --max-len=80 --reformat-tags . + swagger: swag f -g api.go -d internal/api swag i -g api.go -d internal/api +test: mod-tidy + go test -v -race ./... + # Build docker image image: build docker build -t $(BINARY) . diff --git a/submit/tx.go b/submit/tx.go index 4f6c2de..ac176aa 100644 --- a/submit/tx.go +++ b/submit/tx.go @@ -37,7 +37,10 @@ func SubmitTx(cfg *Config, txRawBytes []byte) (string, error) { // Determine transaction type (era) txType, err := ledger.DetermineTransactionType(txRawBytes) if err != nil { - return "", fmt.Errorf("could not parse transaction to determine type: %s", err) + return "", fmt.Errorf( + "could not parse transaction to determine type: %s", + err, + ) } tx, err := ledger.NewTransactionFromCbor(txType, txRawBytes) if err != nil {