Repository navigation
Specify transaction fees in a selected asset - #641
pixelcircuits wants to merge 8 commits into
Conversation
PR SummaryHigh Risk Overview Change output rules are rewritten: success/revert balances per asset, with unused MaxFee refunded on the fee asset. Coinbase is extended to a trailing contiguous Mint sequence—one Mint per fee asset used or price-announced (distinct non-base assets, shared coinbase contract), with the base-asset Mint last; each Mint’s Relayed L1 transactions are specified at gas price zero and must use the base fee asset. The VM docs update Reviewed by Cursor Bugbot for commit 0351227. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e125515. Configure here.

This lets a Script pay its gas and tip in FUEL or another asset the producer accepts. The sender signs an output index and a maximum fee. The asset of that Change output determines which coins fund the fee and where the unused amount goes, including on revert.
A block ends with one Mint for each supplemental asset used or announced, followed by the base-asset Mint. Each Mint records the inclusion price and collected fees for its asset. A validator can replay the block using those prices. Feed selection and wallet quotes are node policy.
The changes cover the existing policy, transaction validity, Mint, relayer and instruction-set sections. The VM exposes the policy index through GTF. Programs can use the existing output lookup to read the asset ID.
The existing fee examples now include the tip, refund the unused part of MaxFee, and use the configured base asset for messages. The Mint amount check describes what Core already enforces for a nonzero coinbase contract.
The implementation drafts are Fuel VM #1029 and Fuel Core #3366. I ran
mdbook buildandgit diff --check.