@ethersproject/transactions
Advanced tools
Comparing version 5.0.0-beta.125 to 5.0.0-beta.126
@@ -1,1 +0,1 @@ | ||
export declare const version = "5.0.0-beta.125"; | ||
export declare const version = "5.0.0-beta.126"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "5.0.0-beta.125"; | ||
exports.version = "5.0.0-beta.126"; |
10
index.js
@@ -14,3 +14,2 @@ "use strict"; | ||
var constants_1 = require("@ethersproject/constants"); | ||
var errors = __importStar(require("@ethersproject/errors")); | ||
var keccak256_1 = require("@ethersproject/keccak256"); | ||
@@ -20,2 +19,5 @@ var properties_1 = require("@ethersproject/properties"); | ||
var signing_key_1 = require("@ethersproject/signing-key"); | ||
var logger_1 = require("@ethersproject/logger"); | ||
var _version_1 = require("./_version"); | ||
var logger = new logger_1.Logger(_version_1.version); | ||
/////////////////////////////// | ||
@@ -62,3 +64,3 @@ function handleAddress(value) { | ||
if (fieldInfo.length && value.length !== fieldInfo.length && value.length > 0) { | ||
errors.throwError("invalid length for " + fieldInfo.name, errors.INVALID_ARGUMENT, { arg: ("transaction" + fieldInfo.name), value: value }); | ||
logger.throwArgumentError("invalid length for " + fieldInfo.name, ("transaction:" + fieldInfo.name), value); | ||
} | ||
@@ -69,3 +71,3 @@ // Variable-width (with a maximum) | ||
if (value.length > fieldInfo.maxLength) { | ||
errors.throwError("invalid length for " + fieldInfo.name, errors.INVALID_ARGUMENT, { arg: ("transaction" + fieldInfo.name), value: value }); | ||
logger.throwArgumentError("invalid length for " + fieldInfo.name, ("transaction:" + fieldInfo.name), value); | ||
} | ||
@@ -105,3 +107,3 @@ } | ||
if (transaction.length !== 9 && transaction.length !== 6) { | ||
errors.throwError("invalid raw transaction", errors.INVALID_ARGUMENT, { arg: "rawTransactin", value: rawTransaction }); | ||
logger.throwArgumentError("invalid raw transaction", "rawTransactin", rawTransaction); | ||
} | ||
@@ -108,0 +110,0 @@ var tx = { |
{ | ||
"name": "@ethersproject/transactions", | ||
"version": "5.0.0-beta.125", | ||
"version": "5.0.0-beta.126", | ||
"description": "Error utility functions for ethers.", | ||
@@ -14,4 +14,4 @@ "main": "index.js", | ||
"@ethersproject/constants": ">5.0.0-beta.0", | ||
"@ethersproject/errors": ">5.0.0-beta.0", | ||
"@ethersproject/keccak256": ">5.0.0-beta.0", | ||
"@ethersproject/logger": ">5.0.0-beta.0", | ||
"@ethersproject/properties": ">5.0.0-beta.0", | ||
@@ -30,3 +30,3 @@ "@ethersproject/rlp": ">5.0.0-beta.0", | ||
}, | ||
"tarballHash": "0xcaa03dc68a8040bf26aedad67d79f8d0b49800290842ddd2874cfa56ba3f6a50" | ||
"tarballHash": "0x8e9a5f24e312dff4fdcc19db9363eb6725702e017dc062c881df9f535197e4cc" | ||
} |
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
190
9229
- Removed@ethersproject/errors@>5.0.0-beta.0
- Removed@ethersproject/errors@5.0.1(transitive)