Skip to content

Commit

Permalink
Go lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
toblich committed Feb 1, 2025
1 parent 523c1d2 commit 4572938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chains/solana/contracts/tests/txsizing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func mustRandomPubkey() solana.PublicKey {
return k.PublicKey()
}

const MAX_SOLANA_TX_SIZE = 1232
const MaxSolanaTxSize = 1232

type failOnExcessTxSize func(tables map[solana.PublicKey]solana.PublicKeySlice) bool

Expand Down Expand Up @@ -91,9 +91,9 @@ func TestTransactionSizing(t *testing.T) {
require.NoError(t, err)
l := len(bz)
if failOnExcessPredicate(tables) {
require.LessOrEqual(t, l, MAX_SOLANA_TX_SIZE)
require.LessOrEqual(t, l, MaxSolanaTxSize)
}
remaining := MAX_SOLANA_TX_SIZE - l
remaining := MaxSolanaTxSize - l
var warning string
if remaining < 0 {
warning = "<<< WARNING!!"
Expand Down

0 comments on commit 4572938

Please sign in to comment.