-
Notifications
You must be signed in to change notification settings - Fork 6
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
Show current bundle info #34
Conversation
torkelrogstad
commented
Nov 8, 2023
a551ed4
to
61f8c39
Compare
// https://github.com/LayerTwo-Labs/testchain/blob/ba78df157fcb9f85d898f65db43c2842ab9473ff/src/policy/corepolicy.h#L25 | ||
static const double maxWeight = (maxStandardTxWeight / witnessScaleFactor) / 2; | ||
|
||
Map<String, dynamic> get _values => { |
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.
Is there a reason you cherry-pick fields here? Why not show all of them, always? Future-proofs it. Will never have to look it up in the rpc
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.
If it is the suffixes you want, you could create a withSuffix() function that looks at the key, and appends a fitting suffix
value: withSuffix(key, _values[key])
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'm just following the design spec 🫡
width: width, | ||
child: SailText.secondary12(label), | ||
), | ||
if (label != null) |
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.
Do we really want this? Should figure out a fitting label instead imo. Can't see it used anywhere
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 use it for the yet-to-be-bundled withdrawals