-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 transfer error messages #7968
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.
Looks fine to me. Would like review from @cwgoes as well to make sure we never panic when we shouldn't
// counterparty module. The bug may occur in bank or any part of the code that allows | ||
// the escrow address to be drained. A malicious counterparty module could drain the | ||
// escrow address by allowing more tokens to be sent back then were escrowed. | ||
return sdkerrors.Wrap(err, "unable to unescrow tokens, this may be caused by a malicious counterparty module or a bug: please open an issue") |
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.
return sdkerrors.Wrap(err, "unable to unescrow tokens, this may be caused by a malicious counterparty module or a bug: please open an issue") | |
return sdkerrors.Wrap(err, "unable to unescrow tokens, this may be caused by a malicious counterparty module or a bug: please open an issue on counterparty module") |
Don't necessarily want this going to SDK first, since first check is bug in the module/malicous party
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.
added to both error messages
Codecov Report
@@ Coverage Diff @@
## master #7968 +/- ##
==========================================
- Coverage 54.17% 54.17% -0.01%
==========================================
Files 612 612
Lines 39047 39051 +4
==========================================
+ Hits 21153 21155 +2
- Misses 15719 15720 +1
- Partials 2175 2176 +1 |
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.
ACK - all of these look correct to me
Description
changes inspired by:
and discussion with @AdityaSripal
ref: #7736
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes