freighter icon indicating copy to clipboard operation
freighter copied to clipboard

Catch error not working for getPublicKey()

Open cindro opened this issue 3 years ago • 0 comments

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; }

cindro avatar Aug 12 '21 13:08 cindro