Skip to content

Commit

Permalink
fix a commit
Browse files Browse the repository at this point in the history
Signed-off-by: Mostafa <mostafa.youssef@ontario.ca>
  • Loading branch information
Mostafa committed Mar 21, 2022
1 parent 5f3bfed commit 3381c95
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/src/wallet/IndyWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3381c95

Please sign in to comment.