Skip to content

Commit

Permalink
Deploy CCIP contracts on homechain as well
Browse files Browse the repository at this point in the history
  • Loading branch information
asoliman92 committed Jul 11, 2024
1 parent a8c72f9 commit d697aa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions core/services/ocr3/plugins/ccip_integration_tests/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ type chainBase struct {
// createUniverses does the following:
// 1. Creates 1 home chain and `numChains`-1 non-home chains
// 2. Sets up home chain with the capability registry and the CCIP config contract
// 2. Deploys the CCIP contracts to non-home chains.
// 3. Sets up the initial configurations for the contracts on non-home chains.
// 2. Deploys the CCIP contracts to all chains.
// 3. Sets up the initial configurations for the contracts on all chains.
// 4. Wires the chains together.
func createUniverses(
t *testing.T,
Expand All @@ -94,13 +94,9 @@ func createUniverses(
// Set up home chain first
homeChainUniverse := setupHomeChain(t, homeChainBase.owner, homeChainBase.backend)

// deploy the ccip contracts on the non-home-chain chains (total of 3).
// deploy the ccip contracts on all chains
universes = make(map[uint64]onchainUniverse)
for chainID, base := range chains {
if chainID == homeChainID {
continue
}

owner := base.owner
backend := base.backend
// deploy the CCIP contracts
Expand Down Expand Up @@ -272,7 +268,6 @@ func connectUniverses(
t *testing.T,
universes map[uint64]onchainUniverse,
) {
// Initial configs for contracts on non-home chain
for _, uni := range universes {
wireRouter(t, uni, universes)
wireOnRamp(t, uni, universes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
* Test fails if any wiring between contracts is not correct.
*/
func TestPingPong(t *testing.T) {
_, universes := createUniverses(t, 4)
_, universes := createUniverses(t, 3)
pingPongs := initializePingPongContracts(t, universes)
for chainID, universe := range universes {
for otherChain, pingPong := range pingPongs[chainID] {
Expand Down

0 comments on commit d697aa8

Please sign in to comment.