-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat: Configurable Base Asset ID #573
Conversation
Surprisingly clean changeset, I expected this was hardcoded in more places. I'm not sure wheter we need more test coverage to protect against possible issues with this, mostly because I don't know what ares would beed testing. Generally this looks good to me, and the only potential issue I found is this: Does this part of the code use fuel-vm/fuel-tx/src/transaction/validity.rs Lines 365 to 370 in 487e19f
|
Going forward, I will create a tech-debt ticket to place the |
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.
LGTM; would appreciate another review as well as I might have missed something
@bvrooman looks like there's some new clippy lints after merging master |
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.
I still would appreciate another reviewer, but I think this is good to go.
I'm curious why the asset id ended up on the "fee" configs. Seems like a misleading name at least. I'll read through the code a bit, but I assume that it's used in similar places as the fee stuff. |
As I understand it, fees are generally paid in the base asset. So we can assert that the asset we use for fees is the base asset throughout the VM. In a lot of areas, we hardcoded this assumption (using |
Yeah. I guess that makes sense in the context of places that are dealing with fees. |
I can understand motivation behind moving it to the top level in |
I pushed a commit that moves |
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.
lgtm - i also participated in pairing on this and already familiar with the changes.
Related issues: