From d10a8819883f53e10b3af404250e107f84c6e0e7 Mon Sep 17 00:00:00 2001 From: Raj Ranjan Date: Fri, 6 Dec 2024 00:50:30 +0530 Subject: [PATCH] lint --- .github/workflows/ci.yml | 2 +- .golangci.yml | 1 + service/backend/pchain/construction_test.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30511581..c4f614a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: - uses: actions/checkout@v4 - uses: golangci/golangci-lint-action@v6 with: - version: v1.56.1 + version: v1.62.2 check_mockgen: name: Up-to-date mocks runs-on: ubuntu-latest diff --git a/.golangci.yml b/.golangci.yml index 575e591e..30dfba4d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -120,6 +120,7 @@ linters-settings: gosec: excludes: - G107 # Url provided to HTTP request as taint input https://securego.io/docs/rules/g107 + - G115 # TODO: use typesafe conversion for uint64 -> int64 importas: # Do not allow unaliased imports of aliased packages. no-unaliased: false diff --git a/service/backend/pchain/construction_test.go b/service/backend/pchain/construction_test.go index f7719828..99dbf5c9 100644 --- a/service/backend/pchain/construction_test.go +++ b/service/backend/pchain/construction_test.go @@ -394,7 +394,7 @@ func TestImportTxConstruction(t *testing.T) { unsignedImportTx := "0x000000000011000000050000000000000000000000000000000000000000000000000000000000000000000000013d9bdac0ed1d761330cf680efdeb1a42159eb387d6d2950c96f7d28f61bbe2aa00000007000000003b8b87c0000000000000000000000001000000015445cd01d75b4a06b6b41939193c0b1c5544490d00000000000000007fc93d85c6d62c5b2ac0b519c87010ea5294012d1e407030d6acd0021cac10d500000001f52a5a6dd8f1b3fe05204bdab4f6bcb5a7059f88d0443c636f6c158f838dd1a8000000003d9bdac0ed1d761330cf680efdeb1a42159eb387d6d2950c96f7d28f61bbe2aa00000005000000003b9aca000000000100000000000000004ce8b27d" unsignedImportTxHash, err := hex.DecodeString("e9114ae12065d1f8631bc40729c806a3a4793de714001bfee66482f520dc1865") require.NoError(t, err) - wrappedUnsignedImportTx := `{"tx":"` + unsignedImportTx + `","signers":` + importSigners + `}` //nolint:goconst + wrappedUnsignedImportTx := `{"tx":"` + unsignedImportTx + `","signers":` + importSigners + `}` signingPayloads := []*types.SigningPayload{ {