What is Nostr?
Jack D
npub1y9v…3ykn
2024-10-10 03:56:35
in reply to nevent1q…202m

Jack D on Nostr: I don't think the issue has anything to do with setting a promise as a variable. The ...

I don't think the issue has anything to do with setting a promise as a variable. The async method is the promise. You're setting an executed promise as the variable. In the constructor, set `this.pubkeys = this.getpubkeys` then you can in the call function `await this.pubkeys`

The problem is that constructors are synchronous and cannot be made promise-like. So it's just calling a promise as if it were not.
Author Public Key
npub1y9vq4x927e8h6enst2l8haa84n6wu3q0ea44n59hdctzz7pymz2s9e3ykn