Re-use shallowCopy.
This commit is contained in:
parent
3635a9bb40
commit
f9723c42cb
@ -139,9 +139,7 @@ export class Wallet extends AbstractSigner {
|
|||||||
|
|
||||||
if (this.mnemonic) {
|
if (this.mnemonic) {
|
||||||
// Make sure we don't accidentally bubble the mnemonic up the call-stack
|
// Make sure we don't accidentally bubble the mnemonic up the call-stack
|
||||||
var safeOptions: any = {};
|
options = shallowCopy(options);
|
||||||
for (var key in options) { safeOptions[key] = options[key]; }
|
|
||||||
options = safeOptions;
|
|
||||||
|
|
||||||
// Set the mnemonic and path
|
// Set the mnemonic and path
|
||||||
options.mnemonic = this.mnemonic;
|
options.mnemonic = this.mnemonic;
|
||||||
|
Loading…
Reference in New Issue
Block a user