From 8dd3e10221e9c2762c3fd4ef8ff0382323e0fd63 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Fri, 11 Oct 2024 08:29:42 -0700 Subject: [PATCH] add sol back to app_test.go --- zetaclient/context/app_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zetaclient/context/app_test.go b/zetaclient/context/app_test.go index 5173f4889f..2297a3cdec 100644 --- a/zetaclient/context/app_test.go +++ b/zetaclient/context/app_test.go @@ -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" @@ -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, @@ -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, } @@ -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