diff --git a/src.ts/wallet/wallet.ts b/src.ts/wallet/wallet.ts index 65ffb9526..80198399e 100644 --- a/src.ts/wallet/wallet.ts +++ b/src.ts/wallet/wallet.ts @@ -139,9 +139,7 @@ export class Wallet extends AbstractSigner { if (this.mnemonic) { // Make sure we don't accidentally bubble the mnemonic up the call-stack - var safeOptions: any = {}; - for (var key in options) { safeOptions[key] = options[key]; } - options = safeOptions; + options = shallowCopy(options); // Set the mnemonic and path options.mnemonic = this.mnemonic;