Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ecPablo committed Feb 26, 2025
1 parent 2bb99fd commit 45dc778
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ func transferOwnershipLockReleaseTokenPools(
tokenPoolConfigPDA, // config PDA
solChain.DeployerKey.PublicKey(),
solChain,
state2.BurnMintTokenPool,
state2.LockReleaseTokenPool,
)

if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,20 +384,20 @@ func TestTransferCCIPToMCMSWithTimelockSolana(t *testing.T) {

// (D) Check BurnMintTokenPools ownership:
require.Eventually(t, func() bool {
programData := burnmint.BaseConfig{}
programData := burnmint.State{}
t.Logf("Checking BurnMintTokenPools ownership data. configPDA: %s", burnMintPoolConfigPDA.String())
err := solChain.GetAccountDataBorshInto(ctx, burnMintPoolConfigPDA, &programData)
require.NoError(t, err)
return timelockSignerPDA.String() == programData.Owner.String()
return timelockSignerPDA.String() == programData.Config.Owner.String()
}, 30*time.Second, 5*time.Second, "BurnMintTokenPool owner was not changed to timelock signer PDA")

// (E) Check LockReleaseTokenPools ownership:
require.Eventually(t, func() bool {

Check failure on line 395 in deployment/ccip/changeset/solana/transfer_ccip_to_mcms_with_timelock_test.go

View workflow job for this annotation

GitHub Actions / GolangCI Lint (deployment)

unnecessary leading newline (whitespace)

programData := lockrelease.BaseConfig{}
programData := lockrelease.State{}
t.Logf("Checking LockReleaseTokenPools ownership data. configPDA: %s", lockReleasePoolConfigPDA.String())
err := solChain.GetAccountDataBorshInto(ctx, lockReleasePoolConfigPDA, &programData)
require.NoError(t, err)
return timelockSignerPDA.String() == programData.Owner.String()
return timelockSignerPDA.String() == programData.Config.Owner.String()
}, 30*time.Second, 5*time.Second, "LockReleaseTokenPool owner was not changed to timelock signer PDA")
}
2 changes: 1 addition & 1 deletion deployment/common/proposalutils/mcms_test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func ExecuteMCMSTimelockProposalV2(t *testing.T, env deployment.Environment, tim
if err != nil {
return fmt.Errorf("[ExecuteMCMSTimelockProposalV2] Execute failed: %w", err)
}

t.Logf("[ExecuteMCMSTimelockProposalV2] Executed timelock operation index=%d on chain %d", i, uint64(op.ChainSelector))
family, err := chainsel.GetSelectorFamily(uint64(op.ChainSelector))
require.NoError(t, err)

Expand Down

0 comments on commit 45dc778

Please sign in to comment.