Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Mar 14, 2024
1 parent fedc89e commit f772390
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -188161,7 +188161,7 @@ const robot = (app) => {
}
async function verify(body, address, message) {
const signature = /[0-9a-fA-F]{128}/.exec(body)?.at(0);
console.log(`verifying message: ${message}. Is signature = ${(!!signature)}`);
console.log(`verifying message: ${body}. Message: ${message}. Is signature = ${(!!signature)}`);
if (signature) {
const verifyResult = await verifySignature(signature, address, message);
console.log(`Verifying signature for address ${address}, message ${message}, and signature ${signature}. Result=${verifyResult}`);
Expand Down
2 changes: 1 addition & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export const robot = (app: Probot) => {

async function verify(body: string, address: string, message: string): Promise<boolean | undefined> {
const signature = /[0-9a-fA-F]{128}/.exec(body)?.at(0);
console.log(`verifying message: ${message}. Is signature = ${(!!signature)}`);
console.log(`verifying message: ${body}. Message: ${message}. Is signature = ${(!!signature)}`);
if (signature) {
const verifyResult = await verifySignature(signature, address, message);
console.log(`Verifying signature for address ${address}, message ${message}, and signature ${signature}. Result=${verifyResult}`);
Expand Down

0 comments on commit f772390

Please sign in to comment.