Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit f9723c4

Browse files
committed
Re-use shallowCopy.
1 parent 3635a9b commit f9723c4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src.ts/wallet/wallet.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ export class Wallet extends AbstractSigner {
139139

140140
if (this.mnemonic) {
141141
// Make sure we don't accidentally bubble the mnemonic up the call-stack
142-
var safeOptions: any = {};
143-
for (var key in options) { safeOptions[key] = options[key]; }
144-
options = safeOptions;
142+
options = shallowCopy(options);
145143

146144
// Set the mnemonic and path
147145
options.mnemonic = this.mnemonic;

0 commit comments

Comments
 (0)