refactor: re-order methods

This commit is contained in:
Vlad Stan 2022-10-11 15:55:18 +03:00 committed by dni ⚡
parent 1bfec18433
commit 96046d7fc5

View File

@ -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) {
console.log('### fetchPromisesFromMint', hash, blindedMessages)
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 () {
this.sendData.tokens = 'toookeeens:' + this.sendData.amount
},