freighter
freighter copied to clipboard
Catch error not working for getPublicKey()
Below code catches error when user closes the freighter window:
try { signedTransaction = await window.freighterApi.signTransaction(xdr, network); } catch (e) { error = e; }
This one does not!
try { publicKey = await window.freighterApi.getPublicKey(); } catch (e) { error = e; }