Skip to content

Fix test TestAddEVMSolanaLaneBidirectional #17762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 20 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/gagliardetto/solana-go"
"github.com/smartcontractkit/chainlink-common/pkg/utils/tests"

Check failure on line 11 in deployment/ccip/changeset/crossfamily/v1_6/cs_add_evm_solana_lane_test.go

View workflow job for this annotation

GitHub Actions / GolangCI Lint (deployment)

File is not properly formatted (goimports)
"github.com/stretchr/testify/require"

solOffRamp "github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings/ccip_offramp"
Expand All @@ -16,14 +17,11 @@
solState "github.com/smartcontractkit/chainlink-ccip/chains/solana/utils/state"
"github.com/smartcontractkit/chainlink-testing-framework/lib/utils/testcontext"

"github.com/smartcontractkit/chainlink-common/pkg/utils/tests"

crossfamily "github.com/smartcontractkit/chainlink/deployment/ccip/changeset/crossfamily/v1_6"
ccipChangesetSolana "github.com/smartcontractkit/chainlink/deployment/ccip/changeset/solana"
"github.com/smartcontractkit/chainlink/deployment/ccip/changeset/testhelpers"
"github.com/smartcontractkit/chainlink/deployment/ccip/changeset/v1_6"
"github.com/smartcontractkit/chainlink/deployment/ccip/shared/stateview"
commonchangeset "github.com/smartcontractkit/chainlink/deployment/common/changeset"
"github.com/smartcontractkit/chainlink/deployment/common/proposalutils"
)

Expand Down Expand Up @@ -116,11 +114,21 @@
}

// run the changeset
e, _, err = commonchangeset.ApplyChangesetsV2(t, e, []commonchangeset.ConfiguredChangeSet{
commonchangeset.Configure(crossfamily.AddEVMAndSolanaLaneChangeset, evmSolanaLaneCSInput),
})
out, err := crossfamily.AddEVMAndSolanaLaneChangeset.Apply(e, evmSolanaLaneCSInput)
require.NoError(t, err)

// if MCMS is enabled, we need to run the proposal
if tc.mcmsEnabled {
for _, prop := range out.MCMSTimelockProposals {
mcmProp := proposalutils.SignMCMSTimelockProposal(t, e, &prop)
// return the error so devs can ensure expected reversions
err = proposalutils.ExecuteMCMSProposalV2(t, e, mcmProp)
require.NoError(t, err)
err = proposalutils.ExecuteMCMSTimelockProposalV2(t, e, &prop)
require.NoError(t, err)
}
}

// Check that the changeset was applied
evmState, err = stateview.LoadOnchainState(e)
require.NoError(t, err)
Expand Down
Loading