-
Notifications
You must be signed in to change notification settings - Fork 123
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
update transaction fee xpallet #561
Conversation
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.
Please delete all the useless lines.
For the call having extra fee, have you tested locally that xfee_queryDetails
works exactly like before? It would be even better if you can add a test accordingly.
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.
The previous copy-pasted code should be removed, e.g., compute_fee_raw()
.
Close #442 |
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.
The rest is LGTM
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.
Extra Comment
…n error in xpallets/transaction-fee/rpc/src/lib.rs:89:69
// // Copyright 2019-2020 ChainX Project Authors. Licensed under GPL-3.0. | ||
|
||
//! Runtime API definition for transaction fee module. | ||
// //! Runtime API definition for transaction fee module. |
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.
Remove duplicated slash
runtime/dev/src/lib.rs
Outdated
xpallet_transaction_fee::FeeDetails { | ||
inclusion_fee: base_clone.inclusion_fee, | ||
tip: base.tip, | ||
extra_fee: extra_fee.into(), | ||
final_fee: total + extra_fee, |
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.
Format code
No description provided.