Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
EnoRage committed Feb 17, 2019
2 parents 6e7ea88 + 31bf046 commit 1381479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telegram/handlers/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ function sendTx(ctx) {
return ctx.reply("Change", Keyboard.txVariants)
}

function scanQr(ctx) {
async function scanQr(ctx) {
const key = guid.create().value;
utils.client.set(key, JSON.stringify({
fromAddress: ctx.message.from.id,
fromAddress: (await db.user.find.oneByID(ctx.message.from.id)).ethereumAddress,
toNickname: '',
}), 'EX', utils.keyLifeTime);
return ctx.reply("🔬Scan QR", Keyboard.inlinePay(key));
Expand Down

0 comments on commit 1381479

Please sign in to comment.