From 7c951d5079644f41a63eece90ca7fef17991671e Mon Sep 17 00:00:00 2001 From: x100111010 <167847953+x100111010@users.noreply.github.com> Date: Tue, 18 Mar 2025 14:06:43 +0100 Subject: [PATCH 1/2] style: remove redundant else --- util/txmass/calculator.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/txmass/calculator.go b/util/txmass/calculator.go index 1dae5e35f..b8646cc3b 100644 --- a/util/txmass/calculator.go +++ b/util/txmass/calculator.go @@ -123,9 +123,8 @@ func (c *Calculator) CalculateTransactionStorageMass(transaction *externalapi.Do if harmonicOuts < arithmeticIns { // underflow return 0 - } else { - return harmonicOuts - arithmeticIns } + return harmonicOuts - arithmeticIns } // CalculateTransactionOverallMass calculates the overall mass of the transaction including compute and storage mass components (see KIP-0009) From 443620c139b426b89117a9d1b31d5a2be265a9d8 Mon Sep 17 00:00:00 2001 From: x100111010 <167847953+x100111010@users.noreply.github.com> Date: Tue, 18 Mar 2025 14:53:08 +0100 Subject: [PATCH 2/2] bump go version in deploy --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 144069ba0..a124c9353 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -22,7 +22,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.21 + go-version: 1.23 - name: Build on Linux if: runner.os == 'Linux'