edge-core-js
edge-core-js copied to clipboard
Uncaught TypeError: Not a bridgeable object
im running into this when archiving then activating a wallet
magic.js:116 Uncaught TypeError: Not a bridgeable object
at getInstanceMagic (magic.js:116)
at addListener (manage.js:33)
at Object.on (bridgeable.js:12)
at edgeCurrencyWallet.ts:104
wallet._yaob
exists when active, but when archived and re-activated it's undefined
from then on
console.log({
_yaob: wallet._yaob, // {localId: 27, bridges: Array(0), listeners: {…}, watchers: {…}}
...wallet
})
console.log({
_yaob: wallet._yaob, // undefined
...wallet
})
turns out I was calling watch
on an archived wallet
maybe throw an error before that reaches yaob?