Skip to content

Commit

Permalink
fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
makramkd committed Dec 12, 2024
1 parent f271acb commit 483542f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deployment/ccip/changeset/cs_ccip_home.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/smartcontractkit/ccip-owner-contracts/pkg/gethwrappers"
"github.com/smartcontractkit/ccip-owner-contracts/pkg/proposal/mcms"
"github.com/smartcontractkit/ccip-owner-contracts/pkg/proposal/timelock"
"github.com/smartcontractkit/chainlink-common/pkg/logger"

"github.com/smartcontractkit/chainlink/deployment"
"github.com/smartcontractkit/chainlink/deployment/ccip/changeset/internal"
Expand Down Expand Up @@ -465,6 +466,7 @@ func SetCandidateChangeset(
}

setCandidateMCMSOps, err := setCandidateOnExistingDon(
e.Logger,
txOpts,
e.Chains[cfg.HomeChainSelector],
config,
Expand Down Expand Up @@ -509,6 +511,7 @@ func SetCandidateChangeset(
// setCandidateOnExistingDon calls setCandidate on CCIPHome contract through the UpdateDON call on CapReg contract
// This proposes to set up OCR3 config for the provided plugin for the DON
func setCandidateOnExistingDon(
lggr logger.Logger,
txOpts *bind.TransactOpts,
homeChain deployment.Chain,
pluginConfig ccip_home.CCIPHomeOCR3Config,
Expand All @@ -527,7 +530,7 @@ func setCandidateOnExistingDon(
return nil, fmt.Errorf("don doesn't exist in CR for chain %d", chainSelector)
}

fmt.Printf("donID for chain %d: %d", chainSelector, donID)
lggr.Infof("donID for chain %d: %d", chainSelector, donID)

encodedSetCandidateCall, err := internal.CCIPHomeABI.Pack(
"setCandidate",
Expand Down

0 comments on commit 483542f

Please sign in to comment.