diff --git a/packages/core/src/wallet/IndyWallet.ts b/packages/core/src/wallet/IndyWallet.ts index 1f93d78dc8..3ffeb918e1 100644 --- a/packages/core/src/wallet/IndyWallet.ts +++ b/packages/core/src/wallet/IndyWallet.ts @@ -159,9 +159,8 @@ export class IndyWallet implements Wallet { { id: walletConfig.id }, { key: walletConfig.key, rekey: rekey, key_derivation_method: walletConfig.keyDerivationMethod } ) - if (walletConfig.rekey) { - const { rekey, key, keyDerivationMethod, rekeyDerivationMethod, ...rest } = walletConfig - this.walletConfig = { ...rest, key: rekey, keyDerivationMethod: rekeyDerivationMethod } + if (rekey) { + this.walletConfig = { ...walletConfig, key: rekey } } else { this.walletConfig = walletConfig }