bug: lndhub payment state

refactor: use webln package
This commit is contained in:
2023-05-18 11:17:32 +01:00
parent 7ab8eff33a
commit c52eb38833
11 changed files with 117 additions and 120 deletions

View File

@ -50,10 +50,14 @@ export class NostrConnectWallet implements LNWallet {
} as WalletConnectConfig;
}
isReady(): boolean {
canAutoLogin(): boolean {
return true;
}
isReady(): boolean {
return this.#conn !== undefined;
}
async getInfo() {
await this.login();
return await new Promise<WalletInfo>((resolve, reject) => {