-
Notifications
You must be signed in to change notification settings - Fork 16
feat: ignore opReturn bch #484
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
Conversation
aa5f331 to
579a8a2
Compare
chedieck
left a comment
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.
Conflicts
579a8a2 to
f23dc8c
Compare
| const opReturn = rawOpReturnIsEmptyOrUndefined ? message : rawOpReturn | ||
| const opReturnIsEmptyOrUndefined = opReturn === '' || opReturn === undefined; | ||
|
|
||
| if(!isBCH){ |
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.
This is really weird.
- Identation is missing
- The first three lines of the if clause are identical to what has just been done before entering the
if (!isBCH) {...} - The last two lines of the if clause are identical to what will be done after leaving the
if (!isBCH) {...}
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.
should be good now
chedieck
left a comment
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.
This works with no paymentId, but if paymentId is enabled then it won't trigger success without it. The paymendId, As far as I understood, being included in the opReturn, shouldn't matter.
chedieck
left a comment
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.
As it is now, it works if I send the OP_RETURN without the paymentId, but not if I don't send the OP_RETURN.
As I understood, the expected behavior is: for BCH PayButtons / Widgets, completely ignore the existence of OP_RETURN.
That means that we should check if incoming transactions should be "success txs" (i.e; run onSuccess, toast, etc) solely based on the amount.
Actually got it to work, must have been something else. |
Related to #379
Description
Ignore Op return trigger success validation on bch transactions
Test plan
Check if button is triggering success on BCH transactions with wrong OP_RETURN