-
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-3862 Add tokenDestGasOverhead to CalculateMessageMaxGas #14964
Conversation
0353073
to
367e75a
Compare
367e75a
to
335106c
Compare
335106c
to
e788728
Compare
89c1ad1
to
a7509fd
Compare
Also adds a TODO to update the iface to return an error
a7509fd
to
ed3f56e
Compare
Quality Gate passedIssues Measures |
// 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) { |
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.
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
No description provided.