Skip to content

Commit 11a979f

Browse files
authored
build: go 1.23 (#193)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 49aa42d commit 11a979f

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This file was copied from the following URL and modified:
2-
# https://github.com/golangci/golangci-lint-action/blob/master/README.md#how-to-use
3-
41
name: golangci-lint
52
on:
63
push:
@@ -22,12 +19,8 @@ jobs:
2219
- uses: actions/checkout@v4
2320
- uses: actions/setup-go@v5
2421
with:
25-
go-version: 1.21.x
26-
cache: false
22+
go-version: 1.23.x
2723
- name: golangci-lint
2824
uses: golangci/golangci-lint-action@v6
2925
with:
30-
version: v1.54 # current version at time of commit
31-
args: --timeout=10m
32-
# Only show new issues in a PR but show all issues for pushes
3326
only-new-issues: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ concurrency: ${{ github.ref }}
1111
jobs:
1212
create-draft-release:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
1416
outputs:
1517
RELEASE_ID: ${{ steps.create-release.outputs.result }}
1618
steps:
@@ -60,7 +62,7 @@ jobs:
6062
fetch-depth: '0'
6163
- uses: actions/setup-go@v5
6264
with:
63-
go-version: 1.21.x
65+
go-version: 1.23.x
6466
- name: Build binary
6567
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} make build
6668
- name: Upload release asset
@@ -157,6 +159,8 @@ jobs:
157159

158160
finalize-release:
159161
runs-on: ubuntu-latest
162+
permissions:
163+
contents: write
160164
needs: [create-draft-release, build-binaries, build-images]
161165
steps:
162166
- uses: actions/github-script@v7

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/blinklabs-io/tx-submit-api-mirror
22

3-
go 1.22.11
3+
go 1.23.6
44

55
require (
66
github.com/blinklabs-io/cardano-models v0.4.0

internal/api/api.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ func handleSubmitTx(c *gin.Context) {
217217
if cfg.Maestro.ApiKey != "" {
218218
go func(cfg *config.Config, rawTx []byte) {
219219
txHex := hex.EncodeToString(rawTx)
220-
maestroClient := maestro.NewClient(cfg.Maestro.ApiKey, cfg.Maestro.Network)
220+
maestroClient := maestro.NewClient(
221+
cfg.Maestro.ApiKey,
222+
cfg.Maestro.Network,
223+
)
221224
startTime := time.Now()
222225
if cfg.Maestro.TurboTx {
223226
_, err := maestroClient.TxManagerSubmitTurbo(txHex)

0 commit comments

Comments
 (0)