zksync-web3
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -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); |
{ | ||
"name": "zksync-web3", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"main": "build/index.js", | ||
@@ -5,0 +5,0 @@ "types": "build/index.d.ts", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
94245
2883
0