Socket
Socket
Sign inDemoInstall

zksync-web3

Package Overview
Dependencies
Maintainers
3
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zksync-web3 - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

10

build/provider.js

@@ -45,4 +45,4 @@ "use strict";

ergsPerPubdata: ethers_1.utils.hexValue((_c = transaction.customData.ergsPerPubdata) !== null && _c !== void 0 ? _c : 0),
validFrom: ethers_1.BigNumber.from((_d = transaction.customData.validFrom) !== null && _d !== void 0 ? _d : utils_1.MIN_TIMESTAMP).toNumber(),
validUntil: ethers_1.BigNumber.from((_e = transaction.customData.validFrom) !== null && _e !== void 0 ? _e : utils_1.MAX_TIMESTAMP).toNumber()
validFrom: (_d = transaction.customData.validFrom) !== null && _d !== void 0 ? _d : utils_1.MIN_TIMESTAMP,
validUntil: (_e = transaction.customData.validFrom) !== null && _e !== void 0 ? _e : utils_1.MAX_TIMESTAMP
};

@@ -67,6 +67,4 @@ if (transaction.customData.withdrawToken) {

});
if (transaction.customData != null) {
// @ts-ignore
params.transaction.customData = transaction.customData;
}
// @ts-ignore
params.transaction.customData = transaction.customData;
const result = await this.perform('estimateGas', params);

@@ -73,0 +71,0 @@ try {

@@ -80,2 +80,9 @@ "use strict";

else {
// const from = await this.getAddress();
// if (transaction.from == null) {
// transaction.from = from;
// }
// if (transaction.from.toLowerCase() !== from.toLowerCase()) {
// throw new Error("transaction `from` address mismatch");
// }
(_c = transaction.nonce) !== null && _c !== void 0 ? _c : (transaction.nonce = await this.getNonce());

@@ -82,0 +89,0 @@ (_d = (_o = transaction.customData).feeToken) !== null && _d !== void 0 ? _d : (_o.feeToken = utils_1.ETH_ADDRESS);

2

package.json
{
"name": "zksync-web3",
"version": "0.2.4",
"version": "0.2.5",
"main": "build/index.js",

@@ -5,0 +5,0 @@ "types": "build/index.d.ts",

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