Skip to content

Commit

Permalink
update aa api intervel time
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Dec 21, 2023
1 parent 6076bdb commit f07dc31
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/evm-aa/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class JoySigner implements SmartAccountSigner {
}
clearInterval(interval);
});
}, 2000);
}, 500);
} catch (error) {
console.log(error);
}
Expand All @@ -63,7 +63,6 @@ export class JoySigner implements SmartAccountSigner {
} else {
try {
const {token, url} = buildSignMsgTokenAndUrl(this.webApp.initData, this.address, msg);
console.log("sign message url", url);
this.openUrl(url);
const interval = setInterval(() => {
api.getTgBotMessage<SignResp>(token).then(({signature}) => {
Expand All @@ -74,7 +73,7 @@ export class JoySigner implements SmartAccountSigner {
}
clearInterval(interval);
});
}, 2000);
}, 500);
} catch (error) {
console.error(error);
}
Expand All @@ -101,7 +100,7 @@ export class JoySigner implements SmartAccountSigner {
}
clearInterval(interval);
});
}, 2000);
}, 500);
} catch (error) {
console.error(error);
}
Expand Down

0 comments on commit f07dc31

Please sign in to comment.