@ethersproject/json-wallets
Advanced tools
Comparing version 5.0.0-beta.127 to 5.0.0-beta.128
@@ -1,1 +0,1 @@ | ||
export declare const version = "json-wallets/5.0.0-beta.127"; | ||
export declare const version = "json-wallets/5.0.0-beta.128"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "json-wallets/5.0.0-beta.127"; | ||
exports.version = "json-wallets/5.0.0-beta.128"; |
@@ -72,13 +72,16 @@ "use strict"; | ||
} | ||
var address = data.address.toLowerCase(); | ||
if (address.substring(0, 2) !== "0x") { | ||
address = "0x" + address; | ||
} | ||
try { | ||
if (address_1.getAddress(address) !== transactions_1.computeAddress(privateKey)) { | ||
reject(new Error("address mismatch")); | ||
return null; | ||
var address = transactions_1.computeAddress(privateKey); | ||
if (data.address) { | ||
var check = data.address.toLowerCase(); | ||
if (check.substring(0, 2) !== "0x") { | ||
check = "0x" + check; | ||
} | ||
try { | ||
if (address_1.getAddress(check) !== address) { | ||
reject(new Error("address mismatch")); | ||
return null; | ||
} | ||
} | ||
catch (e) { } | ||
} | ||
catch (e) { } | ||
var account = { | ||
@@ -85,0 +88,0 @@ _isKeystoreAccount: true, |
{ | ||
"name": "@ethersproject/json-wallets", | ||
"version": "5.0.0-beta.127", | ||
"version": "5.0.0-beta.128", | ||
"description": "Wallet management utilities for KeyStore and Crowdsale JSON wallets.", | ||
@@ -38,3 +38,3 @@ "main": "index.js", | ||
}, | ||
"tarballHash": "0x100c9ebe3f149567b3f10cdcb0dff52c6fae4ab84677b4b571f2d0717389b636" | ||
"tarballHash": "0x0b0bb2c6908fb0e54819bb2c5b41a15e7bab4763b782a7e3812d07d7ae69876f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29847
662