Skip to content

Commit

Permalink
add sol back to app_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Oct 11, 2024
1 parent 5f48e79 commit 8dd3e10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zetaclient/context/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/zeta-chain/node/pkg/chains"
"github.com/zeta-chain/node/testutil/sample"
"github.com/zeta-chain/node/x/observer/types"
"github.com/zeta-chain/node/zetaclient/config"
"golang.org/x/exp/maps"
Expand Down Expand Up @@ -38,6 +39,8 @@ func TestAppContext(t *testing.T) {
btcParams := types.GetDefaultBtcMainnetChainParams()
btcParams.IsSupported = true

solParams := sample.ChainParamsSupported(chains.SolanaLocalnet.ChainId)

fancyL2 := chains.Chain{
ChainId: 123,
Network: 0,
Expand Down Expand Up @@ -77,6 +80,7 @@ func TestAppContext(t *testing.T) {
chainParams := map[int64]*types.ChainParams{
chains.Ethereum.ChainId: ethParams,
chains.BitcoinMainnet.ChainId: btcParams,
chains.SolanaLocalnet.ChainId: solParams,
fancyL2.ChainId: fancyL2Params,
}

Expand Down Expand Up @@ -113,7 +117,7 @@ func TestAppContext(t *testing.T) {
assert.Equal(t, fancyL2Params, fancyL2Chain.Params())

// Check chain IDs
expectedIDs := []int64{ethParams.ChainId, btcParams.ChainId, fancyL2.ChainId}
expectedIDs := []int64{ethParams.ChainId, btcParams.ChainId, solParams.ChainId, fancyL2.ChainId}
assert.ElementsMatch(t, expectedIDs, appContext.ListChainIDs())

// Check config
Expand Down

0 comments on commit 8dd3e10

Please sign in to comment.