-
Notifications
You must be signed in to change notification settings - Fork 35
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
Tokens not being passed to subscribeToPayViaDetails via isDestinationPayable #139
Comments
nm i see the issue |
what happens if you use mtokens instead of tokens? it works ok? |
It doesn't, it throws the following:
|
I mean if you use the mtokens and tokens together like pass both that you get from decodePaymentRequest |
Same error:
EDIT: Nevermind I'm an idiot, forgot to convert tokens to mtokens first |
sorry i mean decodePaymentRequest will return mtokens as well as tokens so const { destination, mtokens } = await decodePaymentRequest({ const isPayable = await isDestinationPayable({
destination,
mtokens,
lnd
}) |
If I use only I'm still getting inside if I include both
|
ok sounds like something is wrong there then, can take a look it should work with tokens alone and mtokens alone |
should be corrected now |
lightning/lnd_methods/offchain/is_destination_payable.js
Line 59 in 37837f2
Can you confirm the above logic is correct?
If I pass in
tokens
it's always null andsubscribeToPayViaDetails
function fails withExpectedTokenAmountToPayInPaymentDetails
.Example:
The text was updated successfully, but these errors were encountered: