Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Nov 19, 2024
1 parent 707356a commit 22529a2
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions deployment/ccip/changeset/initial_add_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
ccipdeployment "github.com/smartcontractkit/chainlink/deployment/ccip"
)

var _ deployment.ChangeSet[InitialAddChainConfig] = InitialAddChain
var _ deployment.ChangeSet[ccipdeployment.InitialAddChainConfig] = InitialAddChain

func InitialAddChain(env deployment.Environment, c InitialAddChainConfig) (deployment.ChangesetOutput, error) {
func InitialAddChain(env deployment.Environment, c ccipdeployment.InitialAddChainConfig) (deployment.ChangesetOutput, error) {
newAddresses := deployment.NewMemoryAddressBook()
err := ccipdeployment.DeployChainContractsForChains(env, newAddresses, c.HomeChainSelector, c.ChainSelectors, c.MCMSCfg)
err := ccipdeployment.InitialAddChain(env, newAddresses, c)
if err != nil {
env.Logger.Errorw("Failed to deploy CCIP contracts", "err", err, "newAddresses", newAddresses)
return deployment.ChangesetOutput{AddressBook: newAddresses}, deployment.MaybeDataErr(err)
Expand All @@ -22,16 +22,3 @@ func InitialAddChain(env deployment.Environment, c InitialAddChainConfig) (deplo
JobSpecs: nil,
}, nil
}

type InitialAddChainConfig struct {
ChainSelectors []uint64
HomeChainSelector uint64
FeedChainSel uint64
TokenConfig TokenConfig
// I believe it makes sense to have the same signers across all chains
// since that's the point MCMS.
MCMSConfig MCMSConfig
USDCConfig USDCConfig
// For setting OCR configuration
OCRSecrets deployment.OCRSecrets
}

0 comments on commit 22529a2

Please sign in to comment.