Skip to content

Commit

Permalink
preload first
Browse files Browse the repository at this point in the history
  • Loading branch information
tt-cll committed Feb 19, 2025
1 parent 8f2035f commit 66eea30
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deployment/ccip/changeset/solana/cs_deploy_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ func TestDeployChainContractsChangesetSolana(t *testing.T) {

feeAggregatorPrivKey, _ := solana.NewRandomPrivateKey()
feeAggregatorPubKey := feeAggregatorPrivKey.PublicKey()
ci := os.Getenv("CI") == "true"
if ci {
testhelpers.SavePreloadedSolAddresses(t, e, solChainSelectors[0])
}

e, err = commonchangeset.Apply(t, e, nil,
commonchangeset.Configure(
Expand Down Expand Up @@ -111,7 +115,6 @@ func TestDeployChainContractsChangesetSolana(t *testing.T) {
),
)
addresses, err := e.ExistingAddresses.AddressesForChain(solChainSelectors[0])
t.Logf("addresses: %v", addresses)
require.NoError(t, err)
mcmState, err := commonState.MaybeLoadMCMSWithTimelockChainStateSolana(e.SolChains[solChainSelectors[0]], addresses)
require.NoError(t, err)
Expand All @@ -126,7 +129,6 @@ func TestDeployChainContractsChangesetSolana(t *testing.T) {
t.Logf("funded mcm signer PDA: %s", mcmSignerPDA.String())
upgradeAuthority := timelockSignerPDA

ci := os.Getenv("CI") == "true"
// we can't upgrade in place locally so we have to change where we build
buildCs := commonchangeset.Configure(
deployment.CreateLegacyChangeSet(cs_solana.BuildSolanaChangeset),
Expand Down Expand Up @@ -230,7 +232,6 @@ func TestDeployChainContractsChangesetSolana(t *testing.T) {
},
)
if ci {
testhelpers.SavePreloadedSolAddresses(t, e, solChainSelectors[0])
e, err = commonchangeset.ApplyChangesetsV2(t, e, []commonchangeset.ConfiguredChangeSet{
deployCs,
feeAggregatorCs,
Expand Down

0 comments on commit 66eea30

Please sign in to comment.