-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: transaction estimation for InputMessage
containing data
#3068
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
This PR is published in NPM with version 0.0.0-pr-3068-20240831093013 |
|
||
// We only consider the message input if it has no data. | ||
// Messages with `data` cannot fund the gas of a transaction. | ||
if (input.type === InputType.Message && bn(input.data).isZero()) { |
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.
Adding a test covering this would be great, and then we're good to go.
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.
@Torres-ssf I assume as you've self assigned you'll add the test for this?
InputMessage
containing data
Coverage Report:
Changed Files:
|
Closing in favor of #3078 |
Release notes
In this release, we:
InputMessage
containsdata
Summary
Messages with
data
cannot fund transactions.This would happen in Fuel accounts that received a deposit from an
ERC20
token (like in the Bridge).Checklist