Re-use shallowCopy.

This commit is contained in:
Richard Moore 2018-08-13 16:52:35 +01:00
parent 3635a9bb40
commit f9723c42cb
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

@ -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;