Skip to content

Commit

Permalink
update tests and toml for rmn ugprade
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAustinWang committed Nov 19, 2024
1 parent 6f95b09 commit 4e94f78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deployment/environment/devenv/rmn_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type SharedConfigNetworking struct {
type HomeChain struct {
Name string `toml:"name"`
CapabilitiesRegistry string `toml:"capabilities_registry"`
CCIPConfig string `toml:"ccip_config"`
CCIPHome string `toml:"ccip_home"`
RMNHome string `toml:"rmn_home"`
}

Expand Down
9 changes: 8 additions & 1 deletion integration-tests/ccip-tests/testsetups/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package testsetups

import (
"fmt"
"github.com/smartcontractkit/chainlink/deployment/ccip/changeset"
"math/big"
"os"
"strconv"
Expand Down Expand Up @@ -143,6 +144,12 @@ func NewLocalDevEnvironmentWithRMN(

// Deploy CCIP contracts.
newAddresses := deployment.NewMemoryAddressBook()
preReqChangeset, err := changeset.DeployPrerequisites(tenv.Env, changeset.DeployPrerequisiteConfig{
ChainSelectors: tenv.Env.AllChainSelectors(),
})
require.NoError(t, err)
require.NoError(t, tenv.Env.ExistingAddresses.Merge(preReqChangeset.AddressBook))

err = ccipdeployment.DeployCCIPContracts(tenv.Env, newAddresses, ccipdeployment.DeployCCIPContractConfig{
HomeChainSel: tenv.HomeChainSel,
FeedChainSel: tenv.FeedChainSel,
Expand Down Expand Up @@ -239,7 +246,7 @@ func GenerateTestRMNConfig(t *testing.T, nRMNNodes int, tenv ccipdeployment.Depl
HomeChain: devenv.HomeChain{
Name: MustCCIPNameToRMNName(hc.Name),
CapabilitiesRegistry: state.Chains[tenv.HomeChainSel].CapabilityRegistry.Address().String(),
CCIPConfig: state.Chains[tenv.HomeChainSel].CCIPHome.Address().String(),
CCIPHome: state.Chains[tenv.HomeChainSel].CCIPHome.Address().String(),
RMNHome: state.Chains[tenv.HomeChainSel].RMNHome.Address().String(),
},
RemoteChains: remoteChains,
Expand Down

0 comments on commit 4e94f78

Please sign in to comment.