@ethersproject/wallet
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -1,1 +0,1 @@ | ||
export declare const version = "wallet/5.0.1"; | ||
export declare const version = "wallet/5.0.2"; |
@@ -1,1 +0,2 @@ | ||
export const version = "wallet/5.0.1"; | ||
export const version = "wallet/5.0.2"; | ||
//# sourceMappingURL=_version.js.map |
@@ -54,2 +54,3 @@ "use strict"; | ||
if (SigningKey.isSigningKey(privateKey)) { | ||
/* istanbul ignore if */ | ||
if (privateKey.curve !== "secp256k1") { | ||
@@ -67,2 +68,3 @@ logger.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]"); | ||
} | ||
/* istanbul ignore if */ | ||
if (provider && !Provider.isProvider(provider)) { | ||
@@ -86,3 +88,3 @@ logger.throwArgumentError("invalid provider", "provider", provider); | ||
if (getAddress(tx.from) !== this.address) { | ||
throw new Error("transaction from address mismatch"); | ||
logger.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from); | ||
} | ||
@@ -143,1 +145,2 @@ delete tx.from; | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const version = "wallet/5.0.1"; | ||
export declare const version = "wallet/5.0.2"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "wallet/5.0.1"; | ||
exports.version = "wallet/5.0.2"; | ||
//# sourceMappingURL=_version.js.map |
@@ -71,2 +71,3 @@ "use strict"; | ||
if (signing_key_1.SigningKey.isSigningKey(privateKey)) { | ||
/* istanbul ignore if */ | ||
if (privateKey.curve !== "secp256k1") { | ||
@@ -84,2 +85,3 @@ logger.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]"); | ||
} | ||
/* istanbul ignore if */ | ||
if (provider && !abstract_provider_1.Provider.isProvider(provider)) { | ||
@@ -117,3 +119,3 @@ logger.throwArgumentError("invalid provider", "provider", provider); | ||
if (address_1.getAddress(tx.from) !== _this.address) { | ||
throw new Error("transaction from address mismatch"); | ||
logger.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from); | ||
} | ||
@@ -177,1 +179,2 @@ delete tx.from; | ||
exports.verifyMessage = verifyMessage; | ||
//# sourceMappingURL=index.js.map |
@@ -40,5 +40,5 @@ { | ||
}, | ||
"tarballHash": "0x3e4386fc3f8cc7818e8e8f03bd5bc221c0d05c4b37cbe5497b67c106c3b735a3", | ||
"tarballHash": "0xc4a2ead43cdf1ab37ca4bd6f93cbe586981fc2bf8b5d6dbbfb183fe198ec7ffb", | ||
"types": "./lib/index.d.ts", | ||
"version": "5.0.1" | ||
"version": "5.0.2" | ||
} |
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
32040
15
382