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 {