@@ -19,7 +19,6 @@ import (
1919 cldf "github.com/smartcontractkit/chainlink-deployments-framework/deployment"
2020
2121 "github.com/smartcontractkit/chainlink/deployment/ccip/changeset/globals"
22- opsv16 "github.com/smartcontractkit/chainlink/deployment/ccip/operation/evm/v1_6"
2322 viewshared "github.com/smartcontractkit/chainlink/deployment/ccip/view/shared"
2423 "github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/ccipevm"
2524)
@@ -558,22 +557,10 @@ func (c CCIPChainState) validateV16DestChainConfig(
558557 break
559558 }
560559 } else {
561- // No legacy -- validate against canonical defaults.
562- expected := opsv16 .DefaultFeeQuoterDestChainConfig (true , destChainSel )
563- if err := compareFieldChecks ("defaults" , []fieldCheck {
564- {"MaxNumberOfTokensPerMsg" , uint64 (destCfg .MaxNumberOfTokensPerMsg ), uint64 (expected .MaxNumberOfTokensPerMsg )},
565- {"MaxDataBytes" , uint64 (destCfg .MaxDataBytes ), uint64 (expected .MaxDataBytes )},
566- {"MaxPerMsgGasLimit" , uint64 (destCfg .MaxPerMsgGasLimit ), uint64 (expected .MaxPerMsgGasLimit )},
567- {"DestGasOverhead" , uint64 (destCfg .DestGasOverhead ), uint64 (expected .DestGasOverhead )},
568- {"DestGasPerPayloadByteBase" , uint64 (destCfg .DestGasPerPayloadByteBase ), uint64 (expected .DestGasPerPayloadByteBase )},
569- {"DefaultTokenDestGasOverhead" , uint64 (destCfg .DefaultTokenDestGasOverhead ), uint64 (expected .DefaultTokenDestGasOverhead )},
570- {"DestDataAvailabilityOverheadGas" , uint64 (destCfg .DestDataAvailabilityOverheadGas ), uint64 (expected .DestDataAvailabilityOverheadGas )},
571- {"DestGasPerDataAvailabilityByte" , uint64 (destCfg .DestGasPerDataAvailabilityByte ), uint64 (expected .DestGasPerDataAvailabilityByte )},
572- {"DestDataAvailabilityMultiplierBps" , uint64 (destCfg .DestDataAvailabilityMultiplierBps ), uint64 (expected .DestDataAvailabilityMultiplierBps )},
573- {"GasMultiplierWeiPerEth" , destCfg .GasMultiplierWeiPerEth , expected .GasMultiplierWeiPerEth },
574- {"DefaultTokenFeeUSDCents" , uint64 (destCfg .DefaultTokenFeeUSDCents ), uint64 (expectedDefaultTokenFeeUSDCents (sourceChainSel , destChainSel ))},
575- }); err != nil {
576- errs = append (errs , err )
560+ // No legacy to cross-check — validate fee-related fields against expected values.
561+ expectedFee := expectedDefaultTokenFeeUSDCents (sourceChainSel , destChainSel )
562+ if uint64 (destCfg .DefaultTokenFeeUSDCents ) != uint64 (expectedFee ) {
563+ errs = append (errs , fmt .Errorf ("DefaultTokenFeeUSDCents: got=%d, want=%d" , destCfg .DefaultTokenFeeUSDCents , expectedFee ))
577564 }
578565 }
579566
0 commit comments