Skip to content
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-3862 Add tokenDestGasOverhead to CalculateMessageMaxGas #14964

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

rstout
Copy link
Contributor

@rstout rstout commented Oct 25, 2024

No description provided.

@rstout rstout requested a review from a team as a code owner October 25, 2024 18:55
@rstout rstout force-pushed the AddTokenDestGasOverhead branch 4 times, most recently from 0353073 to 367e75a Compare October 25, 2024 19:22
@rstout rstout changed the title Add tokenDestGasOverhead to CalculateMessageMaxGas CCIP-3862 Add tokenDestGasOverhead to CalculateMessageMaxGas Oct 25, 2024
@rstout rstout force-pushed the AddTokenDestGasOverhead branch from 367e75a to 335106c Compare October 25, 2024 19:31
@rstout rstout requested review from a team as code owners October 25, 2024 19:31
@rstout rstout requested a review from vyzaldysanchez October 25, 2024 19:31
@rstout rstout force-pushed the AddTokenDestGasOverhead branch from 335106c to e788728 Compare October 25, 2024 19:50
winder
winder previously approved these changes Oct 28, 2024
mateusz-sekara
mateusz-sekara previously approved these changes Oct 28, 2024
core/capabilities/ccip/ccipevm/gas_helpers.go Outdated Show resolved Hide resolved
@rstout rstout dismissed stale reviews from mateusz-sekara and winder via 89c1ad1 October 28, 2024 18:30
@rstout rstout force-pushed the AddTokenDestGasOverhead branch 2 times, most recently from 89c1ad1 to a7509fd Compare October 28, 2024 18:44
Also adds a TODO to update the iface to return an error
@rstout rstout force-pushed the AddTokenDestGasOverhead branch from a7509fd to ed3f56e Compare October 28, 2024 19:03
@ogtownsend ogtownsend requested a review from matYang October 28, 2024 22:53
@winder winder enabled auto-merge October 28, 2024 23:26
// CalculateMessageMaxGasWithError computes the maximum gas overhead for a message.
// TODO: Add destGasOverhead, see:
// https://github.com/smartcontractkit/chainlink/blob/23452266132228234312947660374fb393e96f1a/contracts/src/v0.8/ccip/FeeQuoter.sol#L97
func (gp EstimateProvider) CalculateMessageMaxGasWithError(msg cciptypes.Message) (uint64, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CalculateMessageMaxGasWithError naming implies to me that we are doing something useful with the error. Panic'ing is ...useful, just not the usual application. I see both API's are public and exportable - is there a plan to deprecate CalculateMessageMaxGas

@winder winder added this pull request to the merge queue Oct 28, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants