chore: do not loose stuff

This commit is contained in:
Vlad Stan 2022-10-10 13:06:11 +03:00 committed by dni ⚡
parent cf5ffe24ea
commit 50bc631f16
2 changed files with 9 additions and 3 deletions

View File

@ -22,7 +22,7 @@ async function step1Bob(secretMessage) {
)
const P = nobleSecp256k1.Point.fromPrivateKey(randomBlindingFactor)
const B_ = Y.add(P)
return {B_, randomBlindingFactor}
return {B_: B_.toHex(true), randomBlindingFactor}
}
function step3Bob(C_, r, A) {

View File

@ -78,7 +78,7 @@ page_container %}
<q-tr :props="props">
<q-td key="status" :props="props">
<div v-if="props.row.status == 'pending'">
<q-icon name="settings_ethernet" color="grey">
<q-icon @click="showInvoiceDialog(props.row)" name="settings_ethernet" color="grey">
<q-tooltip>Pending</q-tooltip>
</q-icon>
<q-badge
@ -844,6 +844,12 @@ page_container %}
this.buyTokens.showDialog = true
},
showInvoiceDialog: async function (data) {
this.buyTokens.data = data
this.buyTokens.showDialog = true
},
requestInvoice: async function () {
try {
const {data} = await LNbits.api.request(
@ -894,7 +900,7 @@ page_container %}
recheckToken: async function(hash) {
console.log('### recheckToken', hash)
const tokens = this.tokenBuys.find(bt => bt.hash = hash)
const tokens = this.tokens.find(bt => bt.hash = hash)
if (!tokens) {
console.error('####### no token for hash', hash)
return