Skip to content

Commit

Permalink
moving add instruction post sanity
Browse files Browse the repository at this point in the history
Signed-off-by: 0xsuryansh <[email protected]>
  • Loading branch information
0xsuryansh committed Oct 2, 2024
1 parent 094bdc5 commit 1d42a4a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
34 changes: 17 additions & 17 deletions contracts/gas-snapshots/ccip.gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -610,16 +610,16 @@ OCR2Base_transmit:test_Transmit2SignersSuccess_gas() (gas: 51689)
OCR2Base_transmit:test_UnAuthorizedTransmitter_Revert() (gas: 23511)
OCR2Base_transmit:test_UnauthorizedSigner_Revert() (gas: 39707)
OCR2Base_transmit:test_WrongNumberOfSignatures_Revert() (gas: 20584)
OffRamp_afterOC3ConfigSet:test_afterOCR3ConfigSet_SignatureVerificationDisabled_Revert() (gas: 5915989)
OffRamp_applySourceChainConfigUpdates:test_AddMultipleChains_Success() (gas: 626169)
OffRamp_applySourceChainConfigUpdates:test_AddNewChain_Success() (gas: 166511)
OffRamp_afterOC3ConfigSet:test_afterOCR3ConfigSet_SignatureVerificationDisabled_Revert() (gas: 5913989)
OffRamp_applySourceChainConfigUpdates:test_AddMultipleChains_Success() (gas: 626106)
OffRamp_applySourceChainConfigUpdates:test_AddNewChain_Success() (gas: 166490)
OffRamp_applySourceChainConfigUpdates:test_ApplyZeroUpdates_Success() (gas: 16763)
OffRamp_applySourceChainConfigUpdates:test_InvalidOnRampUpdate_Revert() (gas: 272499)
OffRamp_applySourceChainConfigUpdates:test_ReplaceExistingChainOnRamp_Success() (gas: 168614)
OffRamp_applySourceChainConfigUpdates:test_ReplaceExistingChain_Success() (gas: 181069)
OffRamp_applySourceChainConfigUpdates:test_RouterAddress_Revert() (gas: 80266)
OffRamp_applySourceChainConfigUpdates:test_ZeroOnRampAddress_Revert() (gas: 206352)
OffRamp_applySourceChainConfigUpdates:test_ZeroSourceChainSelector_Revert() (gas: 62422)
OffRamp_applySourceChainConfigUpdates:test_InvalidOnRampUpdate_Revert() (gas: 272148)
OffRamp_applySourceChainConfigUpdates:test_ReplaceExistingChainOnRamp_Success() (gas: 168572)
OffRamp_applySourceChainConfigUpdates:test_ReplaceExistingChain_Success() (gas: 181027)
OffRamp_applySourceChainConfigUpdates:test_RouterAddress_Revert() (gas: 13463)
OffRamp_applySourceChainConfigUpdates:test_ZeroOnRampAddress_Revert() (gas: 72746)
OffRamp_applySourceChainConfigUpdates:test_ZeroSourceChainSelector_Revert() (gas: 15519)
OffRamp_batchExecute:test_MultipleReportsDifferentChainsSkipCursedChain_Success() (gas: 177947)
OffRamp_batchExecute:test_MultipleReportsDifferentChains_Success() (gas: 335550)
OffRamp_batchExecute:test_MultipleReportsSameChain_Success() (gas: 278816)
Expand All @@ -634,8 +634,8 @@ OffRamp_commit:test_FailedRMNVerification_Reverts() (gas: 64099)
OffRamp_commit:test_InvalidIntervalMinLargerThanMax_Revert() (gas: 68173)
OffRamp_commit:test_InvalidInterval_Revert() (gas: 64291)
OffRamp_commit:test_InvalidRootRevert() (gas: 63356)
OffRamp_commit:test_NoConfigWithOtherConfigPresent_Revert() (gas: 6676780)
OffRamp_commit:test_NoConfig_Revert() (gas: 6260452)
OffRamp_commit:test_NoConfigWithOtherConfigPresent_Revert() (gas: 6674717)
OffRamp_commit:test_NoConfig_Revert() (gas: 6258389)
OffRamp_commit:test_OnlyGasPriceUpdates_Success() (gas: 113042)
OffRamp_commit:test_OnlyPriceUpdateStaleReport_Revert() (gas: 121403)
OffRamp_commit:test_OnlyTokenPriceUpdates_Success() (gas: 113063)
Expand All @@ -649,23 +649,23 @@ OffRamp_commit:test_UnauthorizedTransmitter_Revert() (gas: 125409)
OffRamp_commit:test_Unhealthy_Revert() (gas: 58633)
OffRamp_commit:test_ValidPriceUpdateThenStaleReportWithRoot_Success() (gas: 206778)
OffRamp_commit:test_ZeroEpochAndRound_Revert() (gas: 51722)
OffRamp_constructor:test_Constructor_Success() (gas: 6221879)
OffRamp_constructor:test_SourceChainSelector_Revert() (gas: 182841)
OffRamp_constructor:test_Constructor_Success() (gas: 6219847)
OffRamp_constructor:test_SourceChainSelector_Revert() (gas: 135943)
OffRamp_constructor:test_ZeroChainSelector_Revert() (gas: 103375)
OffRamp_constructor:test_ZeroNonceManager_Revert() (gas: 101269)
OffRamp_constructor:test_ZeroOnRampAddress_Revert() (gas: 228266)
OffRamp_constructor:test_ZeroOnRampAddress_Revert() (gas: 161468)
OffRamp_constructor:test_ZeroRMNRemote_Revert() (gas: 101189)
OffRamp_constructor:test_ZeroTokenAdminRegistry_Revert() (gas: 101227)
OffRamp_execute:test_IncorrectArrayType_Revert() (gas: 17639)
OffRamp_execute:test_LargeBatch_Success() (gas: 3425675)
OffRamp_execute:test_MultipleReportsWithPartialValidationFailures_Success() (gas: 372967)
OffRamp_execute:test_MultipleReports_Success() (gas: 300913)
OffRamp_execute:test_NoConfigWithOtherConfigPresent_Revert() (gas: 7085653)
OffRamp_execute:test_NoConfig_Revert() (gas: 6310128)
OffRamp_execute:test_NoConfigWithOtherConfigPresent_Revert() (gas: 7083590)
OffRamp_execute:test_NoConfig_Revert() (gas: 6308065)
OffRamp_execute:test_NonArray_Revert() (gas: 27562)
OffRamp_execute:test_SingleReport_Success() (gas: 176332)
OffRamp_execute:test_UnauthorizedTransmitter_Revert() (gas: 148350)
OffRamp_execute:test_WrongConfigWithSigners_Revert() (gas: 7088402)
OffRamp_execute:test_WrongConfigWithSigners_Revert() (gas: 7086339)
OffRamp_execute:test_ZeroReports_Revert() (gas: 17361)
OffRamp_executeSingleMessage:test_MessageSender_Revert() (gas: 18511)
OffRamp_executeSingleMessage:test_NonContractWithTokens_Success() (gas: 244057)
Expand Down
3 changes: 2 additions & 1 deletion contracts/src/v0.8/ccip/offRamp/OffRamp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,6 @@ contract OffRamp is ITypeAndVersion, MultiOCR3Base {
for (uint256 i = 0; i < sourceChainConfigUpdates.length; ++i) {
SourceChainConfigArgs memory sourceConfigUpdate = sourceChainConfigUpdates[i];
uint64 sourceChainSelector = sourceConfigUpdate.sourceChainSelector;
s_sourceChainSelectors.add(sourceChainSelector);

if (sourceChainSelector == 0) {
revert ZeroChainSelectorNotAllowed();
Expand Down Expand Up @@ -980,6 +979,8 @@ contract OffRamp is ITypeAndVersion, MultiOCR3Base {
currentConfig.isEnabled = sourceConfigUpdate.isEnabled;
currentConfig.router = sourceConfigUpdate.router;

s_sourceChainSelectors.add(sourceChainSelector);

emit SourceChainConfigSet(sourceChainSelector, currentConfig);
}
}
Expand Down

0 comments on commit 1d42a4a

Please sign in to comment.