Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make golines #217

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) .
5 changes: 4 additions & 1 deletion submit/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down