-
Notifications
You must be signed in to change notification settings - Fork 978
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
Removes fee panics from sdk #1878
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.
Overall looks reasonable.
Only suggestion I would have is maybe split the error.rs
additions into their own commit so that there is a more clear point in where they are added
shared/src/ledger/signing.rs
Outdated
@@ -277,10 +277,11 @@ pub async fn aux_signing_data< | |||
}; | |||
|
|||
if fee_payer == masp_tx_key().to_public() { | |||
panic!( | |||
return Err(Error::Tx(TxError::Other( |
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.
For this one it may be god to just return a Error::Other. Though it doesn't matter too much.
6c5f80e
to
1a61ae6
Compare
1a61ae6
to
63467f7
Compare
* origin/grarco/remove-sdk-fee-panics: changelog: add #1878 Removes fee panics from sdk Adds fee-related errors to sdk
Describe your changes
Removes some wrong
panic!
that were mistakenly brought into the sdk by the gas&fee pr.Indicate on which release or other PRs this topic is based on
v0.22.0
Checklist before merging to
draft