We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aef612e commit d0f027bCopy full SHA for d0f027b
src/types/account-manager.ts
@@ -445,6 +445,11 @@ export class AccountManager {
445
const acct = addrWithSigners.addr as Address & AddressWithSigners
446
447
for (const prop in addrWithSigners) {
448
+ // Create a new Address instance for avoid circular references
449
+ if (prop === 'addr') {
450
+ acct.addr = new Address(addrWithSigners.addr.publicKey)
451
+ continue
452
+ }
453
// eslint-disable-next-line @typescript-eslint/no-explicit-any
454
;(acct as any)[prop] = (addrWithSigners as any)[prop]
455
}
0 commit comments