Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
EasterTheBunny committed Nov 26, 2024
1 parent 0eb9b74 commit 4ad1bc9
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions integration-tests/components/chain_components_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import (
"github.com/gagliardetto/solana-go/rpc"
"github.com/gagliardetto/solana-go/rpc/ws"
"github.com/gagliardetto/solana-go/text"
"github.com/test-go/testify/require"
"golang.org/x/sync/errgroup"
"github.com/stretchr/testify/require"

"github.com/smartcontractkit/chainlink-common/pkg/codec"
"github.com/smartcontractkit/chainlink-common/pkg/logger"
Expand Down Expand Up @@ -219,14 +218,13 @@ func (it *SolanaChainComponentsInterfaceTester[T]) Init(t T) {
}

type helper struct {
programId solana.PublicKey
rpcURL string
wsURL string
rpcClient *rpc.Client
wsClient *ws.Client
idlBts []byte
nonce uint64
txErrGroup errgroup.Group
programID solana.PublicKey
rpcURL string
wsURL string
rpcClient *rpc.Client
wsClient *ws.Client
idlBts []byte
nonce uint64
}

func (h *helper) Init(t *testing.T) {
Expand All @@ -247,7 +245,7 @@ func (h *helper) Init(t *testing.T) {
require.NoError(t, err)

contract.SetProgramID(pubkey)
h.programId = pubkey
h.programID = pubkey
}

func (h *helper) RPCClient() *chainreader.RPCClientWrapper {
Expand Down Expand Up @@ -293,7 +291,7 @@ func (h *helper) CreateAccount(t *testing.T, value uint64) solana.PublicKey {
bts := make([]byte, 8)
binary.LittleEndian.PutUint64(bts, h.nonce*value)

pubKey, _, err := solana.FindProgramAddress([][]byte{[]byte("data"), bts}, h.programId)
pubKey, _, err := solana.FindProgramAddress([][]byte{[]byte("data"), bts}, h.programID)
require.NoError(t, err)

// Getting the default localnet private key
Expand Down

0 comments on commit 4ad1bc9

Please sign in to comment.