-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CCIP-4223 bubble up revert for estimation #15504
base: develop
Are you sure you want to change the base?
Conversation
Static analysis results are availableHey @0xsuryansh, you can view Slither reports in the job summary here or download them as artifact here. |
Solidity Review Jira issueHey! We have taken the liberty to link this PR to a Jira issue for Solidity Review. This is a new feature, that's currently in the pilot phase, so please make sure that the linkage is correct. In a contrary case, please update it manually in JIRA and replace Solidity Review issue key in the changeset file with the correct one. Any changes to the Solidity Review Jira issue should be reflected in the changeset file. If you need to update the issue key, please do so manually in the following changeset file: This PR has been linked to Solidity Review Jira issue: CCIP-3966 |
AER Report: CI Core ran successfully ✅AER Report: Operator UI CI ran successfully ✅ |
# Conflicts: # contracts/gas-snapshots/ccip.gas-snapshot # core/gethwrappers/ccip/generated/multi_ocr3_helper/multi_ocr3_helper.go # core/gethwrappers/ccip/generated/offramp/offramp.go # core/gethwrappers/ccip/generation/generated-wrapper-dependency-versions-do-not-edit.txt
Flakeguard Summary
Found Flaky Tests ❌
|
Flakeguard Summary
Found Flaky Tests ❌
|
9b8c6c9
to
5686b69
Compare
constructor() { | ||
i_chainID = block.chainid; | ||
i_gasEstimationSender = address(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you include a comment as to why this is being set as address(1)
please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we use a hard coded value to set an immutable value? Doesn't that mean it's simply a constant?
@@ -1,13 +1,14 @@ | |||
// SPDX-License-Identifier: BUSL-1.1 | |||
pragma solidity 0.8.24; | |||
|
|||
import {CallWithExactGas} from "../../../../shared/call/CallWithExactGas.sol"; | |||
import {IERC20} from "../../../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: order should be interfaces, other, vendor at the bottom for IERC20
PR adds logic to bubble up the revert when gas estimation address Is address(1)