Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ethersproject/json-wallets

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/json-wallets - npm Package Compare versions

Comparing version 5.0.0-beta.127 to 5.0.0-beta.128

2

_version.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc