mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-20 13:04:23 +02:00
refactor: re-order methods
This commit is contained in:
@@ -931,6 +931,14 @@ page_container %}
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
requestTokens: async function (amounts, paymentHash) {
|
||||||
|
const newTokens = await this.buildTokens(amounts, paymentHash)
|
||||||
|
this.tokens.push(newTokens)
|
||||||
|
this.storeTokens()
|
||||||
|
console.log('### this.tokens', this.tokens)
|
||||||
|
await this.fetchPromisesFromMint(paymentHash, newTokens.newTokens)
|
||||||
|
},
|
||||||
|
|
||||||
fetchPromisesFromMint: async function (hash, blindedMessages) {
|
fetchPromisesFromMint: async function (hash, blindedMessages) {
|
||||||
console.log('### fetchPromisesFromMint', hash, blindedMessages)
|
console.log('### fetchPromisesFromMint', hash, blindedMessages)
|
||||||
try {
|
try {
|
||||||
@@ -950,14 +958,6 @@ page_container %}
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
requestTokens: async function (amounts, paymentHash) {
|
|
||||||
const newTokens = await this.buildTokens(amounts, paymentHash)
|
|
||||||
this.tokens.push(newTokens)
|
|
||||||
this.storeTokens()
|
|
||||||
console.log('### this.tokens', this.tokens)
|
|
||||||
await this.fetchPromisesFromMint(paymentHash, newTokens.newTokens)
|
|
||||||
},
|
|
||||||
|
|
||||||
buildAnsShowTokens: async function () {
|
buildAnsShowTokens: async function () {
|
||||||
this.sendData.tokens = 'toookeeens:' + this.sendData.amount
|
this.sendData.tokens = 'toookeeens:' + this.sendData.amount
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user