Updated dist files.
This commit is contained in:
parent
7274cd06cf
commit
68229ac0af
@ -3,6 +3,14 @@ Changelog
|
||||
|
||||
This change log is managed by `admin/cmds/update-versions` but may be manually updated.
|
||||
|
||||
ethers/v5.4.3 (2021-07-29 23:26)
|
||||
--------------------------------
|
||||
|
||||
- Fixed JsonRpcProvider for pre-EIP-2930 chains. ([#1766](https://github.com/ethers-io/ethers.js/issues/1766); [7274cd0](https://github.com/ethers-io/ethers.js/commit/7274cd06cf3f6f31c6df3fd6636706d8536b7ee2))
|
||||
- Forward some missing EIP-1559 fields to call and estimateGas. ([#1766](https://github.com/ethers-io/ethers.js/issues/1766); [be3854e](https://github.com/ethers-io/ethers.js/commit/be3854e648fdef0478db8a64c26be6d9e90cf453))
|
||||
- Fixed possible UnhandledPromiseException for bad ENS names. ([63f8b28](https://github.com/ethers-io/ethers.js/commit/63f8b2822318d1e0fcc41f4662feb6e5ae338f3d))
|
||||
- Prevent overriding value for non-payble constructors. ([#1785](https://github.com/ethers-io/ethers.js/issues/1785); [593b488](https://github.com/ethers-io/ethers.js/commit/593b4886ff607d00d656b8131b843933eb48838e))
|
||||
|
||||
ethers/v5.4.2 (2021-07-23 17:22)
|
||||
--------------------------------
|
||||
|
||||
|
50
package-lock.json
generated
50
package-lock.json
generated
@ -834,9 +834,9 @@
|
||||
"integrity": "sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ=="
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "12.20.16",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.16.tgz",
|
||||
"integrity": "sha512-6CLxw83vQf6DKqXxMPwl8qpF8I7THFZuIwLt4TnNsumxkp1VsRZWT8txQxncT/Rl2UojTsFzWgDG4FRMwafrlA==",
|
||||
"version": "12.20.17",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.17.tgz",
|
||||
"integrity": "sha512-so8EHl4S6MmatPS0f9sE1ND94/ocbcEshW5OpyYthRqeRpiYyW2uXYTo/84kmfdfeNrDycARkvuiXl6nO40NGg==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/resolve": {
|
||||
@ -849,9 +849,9 @@
|
||||
}
|
||||
},
|
||||
"@types/semver": {
|
||||
"version": "7.3.7",
|
||||
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.7.tgz",
|
||||
"integrity": "sha512-4g1jrL98mdOIwSOUh6LTlB0Cs9I0dQPwINUhBg7C6pN4HLr8GS8xsksJxilW6S6dQHVi2K/o+lQuQcg7LroCnw==",
|
||||
"version": "7.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.8.tgz",
|
||||
"integrity": "sha512-D/2EJvAlCEtYFEYmmlGwbGXuK886HzyCc3nZX/tkFTQdEU8jZDAgiv08P162yB17y4ZXZoq7yFAnW4GDBb9Now==",
|
||||
"dev": true
|
||||
},
|
||||
"JSONSelect": {
|
||||
@ -1313,9 +1313,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"caniuse-lite": {
|
||||
"version": "1.0.30001246",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001246.tgz",
|
||||
"integrity": "sha512-Tc+ff0Co/nFNbLOrziBXmMVtpt9S2c2Y+Z9Nk9Khj09J+0zR9ejvIW5qkZAErCbOrVODCx/MN+GpB5FNBs5GFA==",
|
||||
"version": "1.0.30001248",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001248.tgz",
|
||||
"integrity": "sha512-NwlQbJkxUFJ8nMErnGtT0QTM2TJ33xgz4KXJSMIrjXIbDVdaYueGyjOrLKRtJC+rTiWfi6j5cnZN1NBiSBJGNw==",
|
||||
"dev": true
|
||||
},
|
||||
"caseless": {
|
||||
@ -1701,9 +1701,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"electron-to-chromium": {
|
||||
"version": "1.3.785",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.785.tgz",
|
||||
"integrity": "sha512-WmCgAeURsMFiyoJ646eUaJQ7GNfvMRLXo+GamUyKVNEM4MqTAsXyC0f38JEB4N3BtbD0tlAKozGP5E2T9K3YGg==",
|
||||
"version": "1.3.791",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.791.tgz",
|
||||
"integrity": "sha512-Tdx7w1fZpeWOOBluK+kXTAKCXyc79K65RB6Zp0+sPSZZhDjXlrxfGlXrlMGVVQUrKCyEZFQs1UBBLNz5IdbF0g==",
|
||||
"dev": true
|
||||
},
|
||||
"elliptic": {
|
||||
@ -2640,9 +2640,9 @@
|
||||
}
|
||||
},
|
||||
"is-stream": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz",
|
||||
"integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==",
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
|
||||
"integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
|
||||
"dev": true
|
||||
},
|
||||
"is-string": {
|
||||
@ -3267,18 +3267,18 @@
|
||||
"dev": true
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.48.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz",
|
||||
"integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==",
|
||||
"version": "1.49.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.49.0.tgz",
|
||||
"integrity": "sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==",
|
||||
"dev": true
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.1.31",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz",
|
||||
"integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==",
|
||||
"version": "2.1.32",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz",
|
||||
"integrity": "sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"mime-db": "1.48.0"
|
||||
"mime-db": "1.49.0"
|
||||
}
|
||||
},
|
||||
"minimalistic-assert": {
|
||||
@ -5057,9 +5057,9 @@
|
||||
}
|
||||
},
|
||||
"tar": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/tar/-/tar-6.1.0.tgz",
|
||||
"integrity": "sha512-DUCttfhsnLCjwoDoFcI+B2iJgYa93vBnDUATYEeRx6sntCTdN01VnqsIuTlALXla/LWooNg0yEGeB+Y8WdFxGA==",
|
||||
"version": "6.1.2",
|
||||
"resolved": "https://registry.npmjs.org/tar/-/tar-6.1.2.tgz",
|
||||
"integrity": "sha512-EwKEgqJ7nJoS+s8QfLYVGMDmAsj+StbI2AM/RTHeUSsOw6Z8bwNBRv5z3CY0m7laC5qUAqruLX5AhMuc5deY3Q==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"chownr": "^2.0.0",
|
||||
|
12
package.json
12
package.json
@ -100,17 +100,5 @@
|
||||
"solc": "0.7.1",
|
||||
"tiny-inflate": "1.0.3",
|
||||
"ws": "7.4.6"
|
||||
},
|
||||
"autoupdate": {
|
||||
"source": "npm",
|
||||
"target": "ethers",
|
||||
"fileMap": [
|
||||
{
|
||||
"basePath": "dist",
|
||||
"files": [
|
||||
"*.js"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -1,2 +1,2 @@
|
||||
export declare const version = "abstract-signer/5.4.0";
|
||||
export declare const version = "abstract-signer/5.4.1";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,2 +1,2 @@
|
||||
export const version = "abstract-signer/5.4.0";
|
||||
export const version = "abstract-signer/5.4.1";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACxH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAkD,MAAM,2BAA2B,CAAC;AAmBvG,MAAM,WAAW,eAAe;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAID,MAAM,WAAW,sBAAsB;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC/B;AAWD,MA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7B,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAMvD,WAAW,CAAC,OAAO,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrD,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAI7E,cAAc,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlI,OAAO,CAAC,QAAQ,EAAE,QAAQ,GAAG,UAAU;CAG1C"}
|
@ -61,11 +61,11 @@ export class Signer {
|
||||
}
|
||||
// Populates all fields in a transaction, signs it and sends it to the network
|
||||
sendTransaction(transaction) {
|
||||
this._checkProvider("sendTransaction");
|
||||
return this.populateTransaction(transaction).then((tx) => {
|
||||
return this.signTransaction(tx).then((signedTx) => {
|
||||
return this.provider.sendTransaction(signedTx);
|
||||
});
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
this._checkProvider("sendTransaction");
|
||||
const tx = yield this.populateTransaction(transaction);
|
||||
const signedTx = yield this.signTransaction(tx);
|
||||
return yield this.provider.sendTransaction(signedTx);
|
||||
});
|
||||
}
|
||||
getChainId() {
|
||||
@ -147,6 +147,8 @@ export class Signer {
|
||||
}
|
||||
return address;
|
||||
}));
|
||||
// Prevent this error from causing an UnhandledPromiseException
|
||||
tx.to.catch((error) => { });
|
||||
}
|
||||
// Do not allow mixing pre-eip-1559 and eip-1559 proerties
|
||||
const hasEip1559 = (tx.maxFeePerGas != null || tx.maxPriorityFeePerGas != null);
|
||||
|
File diff suppressed because one or more lines are too long
2
packages/abstract-signer/lib/_version.d.ts
vendored
2
packages/abstract-signer/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "abstract-signer/5.4.0";
|
||||
export declare const version = "abstract-signer/5.4.1";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = void 0;
|
||||
exports.version = "abstract-signer/5.4.0";
|
||||
exports.version = "abstract-signer/5.4.1";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src.ts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACxH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAkD,MAAM,2BAA2B,CAAC;AAmBvG,MAAM,WAAW,eAAe;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAID,MAAM,WAAW,sBAAsB;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC/B;AAWD,MAAM,WAAW,eAAe;IAC5B,cAAc,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAA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O,CAAC,MAAM,CAAC;IAIrD,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAI7E,cAAc,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAIlI,OAAO,CAAC,QAAQ,EAAE,QAAQ,GAAG,UAAU;CAG1C"}
|
@ -136,11 +136,21 @@ var Signer = /** @class */ (function () {
|
||||
};
|
||||
// Populates all fields in a transaction, signs it and sends it to the network
|
||||
Signer.prototype.sendTransaction = function (transaction) {
|
||||
var _this = this;
|
||||
this._checkProvider("sendTransaction");
|
||||
return this.populateTransaction(transaction).then(function (tx) {
|
||||
return _this.signTransaction(tx).then(function (signedTx) {
|
||||
return _this.provider.sendTransaction(signedTx);
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var tx, signedTx;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
this._checkProvider("sendTransaction");
|
||||
return [4 /*yield*/, this.populateTransaction(transaction)];
|
||||
case 1:
|
||||
tx = _a.sent();
|
||||
return [4 /*yield*/, this.signTransaction(tx)];
|
||||
case 2:
|
||||
signedTx = _a.sent();
|
||||
return [4 /*yield*/, this.provider.sendTransaction(signedTx)];
|
||||
case 3: return [2 /*return*/, _a.sent()];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
@ -263,6 +273,8 @@ var Signer = /** @class */ (function () {
|
||||
}
|
||||
});
|
||||
}); });
|
||||
// Prevent this error from causing an UnhandledPromiseException
|
||||
tx.to.catch(function (error) { });
|
||||
}
|
||||
hasEip1559 = (tx.maxFeePerGas != null || tx.maxPriorityFeePerGas != null);
|
||||
if (tx.gasPrice != null && (tx.type === 2 || hasEip1559)) {
|
||||
|
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x8c090123662370f27356110b775c8ae479d2fbe3e6794b33bdcc9a4ab70ebaed",
|
||||
"tarballHash": "0xd92a067be6d0ada9205b48af7af6806d0d3d5e2f876276e48ef3c552837116d8",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.4.0"
|
||||
"version": "5.4.1"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "abstract-signer/5.4.0";
|
||||
export const version = "abstract-signer/5.4.1";
|
||||
|
2
packages/contracts/lib.esm/_version.d.ts
vendored
2
packages/contracts/lib.esm/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "contracts/5.4.0";
|
||||
export declare const version = "contracts/5.4.1";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,2 +1,2 @@
|
||||
export const version = "contracts/5.4.0";
|
||||
export const version = "contracts/5.4.1";
|
||||
//# sourceMappingURL=_version.js.map
|
File diff suppressed because one or more lines are too long
@ -928,6 +928,15 @@ export class ContractFactory {
|
||||
}
|
||||
logger.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
|
||||
});
|
||||
if (tx.value) {
|
||||
const value = BigNumber.from(tx.value);
|
||||
if (!value.isZero() && !this.interface.deploy.payable) {
|
||||
logger.throwError("non-payable constructor cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
|
||||
operation: "overrides.value",
|
||||
value: tx.value
|
||||
});
|
||||
}
|
||||
}
|
||||
// Make sure the call matches the constructor signature
|
||||
logger.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
|
||||
// Set the data to the bytecode + the encoded constructor arguments
|
||||
|
File diff suppressed because one or more lines are too long
2
packages/contracts/lib/_version.d.ts
vendored
2
packages/contracts/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "contracts/5.4.0";
|
||||
export declare const version = "contracts/5.4.1";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = void 0;
|
||||
exports.version = "contracts/5.4.0";
|
||||
exports.version = "contracts/5.4.1";
|
||||
//# sourceMappingURL=_version.js.map
|
File diff suppressed because one or more lines are too long
@ -1085,6 +1085,15 @@ var ContractFactory = /** @class */ (function () {
|
||||
}
|
||||
logger.throwError("cannot override " + key, logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
|
||||
});
|
||||
if (tx.value) {
|
||||
var value = bignumber_1.BigNumber.from(tx.value);
|
||||
if (!value.isZero() && !this.interface.deploy.payable) {
|
||||
logger.throwError("non-payable constructor cannot override value", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
|
||||
operation: "overrides.value",
|
||||
value: tx.value
|
||||
});
|
||||
}
|
||||
}
|
||||
// Make sure the call matches the constructor signature
|
||||
logger.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
|
||||
// Set the data to the bytecode + the encoded constructor arguments
|
||||
|
File diff suppressed because one or more lines are too long
@ -44,7 +44,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0xdc9e3ebe1cccd87fc4b8958a53f7347b7674bbfefaf23fb306a933dc61b36373",
|
||||
"tarballHash": "0x010929b9f66f0069f4b3537259c5a2fa0c83aeff05a1457a0aa787937eb3864b",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.4.0"
|
||||
"version": "5.4.1"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "contracts/5.4.0";
|
||||
export const version = "contracts/5.4.1";
|
||||
|
48
packages/ethers/dist/ethers.esm.js
vendored
48
packages/ethers/dist/ethers.esm.js
vendored
@ -8886,7 +8886,7 @@ class Provider {
|
||||
}
|
||||
}
|
||||
|
||||
const version$a = "abstract-signer/5.4.0";
|
||||
const version$a = "abstract-signer/5.4.1";
|
||||
|
||||
"use strict";
|
||||
var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
@ -8948,11 +8948,11 @@ class Signer {
|
||||
}
|
||||
// Populates all fields in a transaction, signs it and sends it to the network
|
||||
sendTransaction(transaction) {
|
||||
this._checkProvider("sendTransaction");
|
||||
return this.populateTransaction(transaction).then((tx) => {
|
||||
return this.signTransaction(tx).then((signedTx) => {
|
||||
return this.provider.sendTransaction(signedTx);
|
||||
});
|
||||
return __awaiter$3(this, void 0, void 0, function* () {
|
||||
this._checkProvider("sendTransaction");
|
||||
const tx = yield this.populateTransaction(transaction);
|
||||
const signedTx = yield this.signTransaction(tx);
|
||||
return yield this.provider.sendTransaction(signedTx);
|
||||
});
|
||||
}
|
||||
getChainId() {
|
||||
@ -9034,6 +9034,8 @@ class Signer {
|
||||
}
|
||||
return address;
|
||||
}));
|
||||
// Prevent this error from causing an UnhandledPromiseException
|
||||
tx.to.catch((error) => { });
|
||||
}
|
||||
// Do not allow mixing pre-eip-1559 and eip-1559 proerties
|
||||
const hasEip1559 = (tx.maxFeePerGas != null || tx.maxPriorityFeePerGas != null);
|
||||
@ -13448,7 +13450,7 @@ function parse(rawTransaction) {
|
||||
});
|
||||
}
|
||||
|
||||
const version$d = "contracts/5.4.0";
|
||||
const version$d = "contracts/5.4.1";
|
||||
|
||||
"use strict";
|
||||
var __awaiter$4 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
@ -14370,6 +14372,15 @@ class ContractFactory {
|
||||
}
|
||||
logger$i.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
|
||||
});
|
||||
if (tx.value) {
|
||||
const value = BigNumber.from(tx.value);
|
||||
if (!value.isZero() && !this.interface.deploy.payable) {
|
||||
logger$i.throwError("non-payable constructor cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
|
||||
operation: "overrides.value",
|
||||
value: tx.value
|
||||
});
|
||||
}
|
||||
}
|
||||
// Make sure the call matches the constructor signature
|
||||
logger$i.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
|
||||
// Set the data to the bytecode + the encoded constructor arguments
|
||||
@ -18299,7 +18310,7 @@ var bech32 = {
|
||||
fromWords: fromWords
|
||||
};
|
||||
|
||||
const version$m = "providers/5.4.2";
|
||||
const version$m = "providers/5.4.3";
|
||||
|
||||
"use strict";
|
||||
const logger$s = new Logger(version$m);
|
||||
@ -19809,7 +19820,7 @@ class BaseProvider extends Provider {
|
||||
}
|
||||
tx[key] = Promise.resolve(values[key]).then((v) => (v ? this._getAddress(v) : null));
|
||||
});
|
||||
["gasLimit", "gasPrice", "value"].forEach((key) => {
|
||||
["gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "value"].forEach((key) => {
|
||||
if (values[key] == null) {
|
||||
return;
|
||||
}
|
||||
@ -20733,6 +20744,23 @@ class JsonRpcProvider extends BaseProvider {
|
||||
}
|
||||
perform(method, params) {
|
||||
return __awaiter$a(this, void 0, void 0, function* () {
|
||||
// Legacy networks do not like the type field being passed along (which
|
||||
// is fair), so we delete type if it is 0 and a non-EIP-1559 network
|
||||
if (method === "call" || method === "estimateGas") {
|
||||
const tx = params.transaction;
|
||||
if (tx && tx.type != null && BigNumber.from(tx.type).isZero()) {
|
||||
// If there are no EIP-1559 properties, it might be non-EIP-a559
|
||||
if (tx.maxFeePerGas == null && tx.maxPriorityFeePerGas == null) {
|
||||
const feeData = yield this.getFeeData();
|
||||
if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) {
|
||||
// Network doesn't know about EIP-1559 (and hence type)
|
||||
params = shallowCopy(params);
|
||||
params.transaction = shallowCopy(tx);
|
||||
delete params.transaction.type;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
const args = this.prepareRequest(method, params);
|
||||
if (args == null) {
|
||||
logger$u.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
|
||||
@ -23161,7 +23189,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
|
||||
Indexed: Indexed
|
||||
});
|
||||
|
||||
const version$o = "ethers/5.4.2";
|
||||
const version$o = "ethers/5.4.3";
|
||||
|
||||
"use strict";
|
||||
const logger$H = new Logger(version$o);
|
||||
|
2
packages/ethers/dist/ethers.esm.js.map
vendored
2
packages/ethers/dist/ethers.esm.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.esm.min.js
vendored
2
packages/ethers/dist/ethers.esm.min.js
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.esm.min.js.map
vendored
2
packages/ethers/dist/ethers.esm.min.js.map
vendored
File diff suppressed because one or more lines are too long
70
packages/ethers/dist/ethers.umd.js
vendored
70
packages/ethers/dist/ethers.umd.js
vendored
@ -9999,7 +9999,7 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = void 0;
|
||||
exports.version = "abstract-signer/5.4.0";
|
||||
exports.version = "abstract-signer/5.4.1";
|
||||
|
||||
});
|
||||
|
||||
@ -10144,11 +10144,21 @@
|
||||
};
|
||||
// Populates all fields in a transaction, signs it and sends it to the network
|
||||
Signer.prototype.sendTransaction = function (transaction) {
|
||||
var _this = this;
|
||||
this._checkProvider("sendTransaction");
|
||||
return this.populateTransaction(transaction).then(function (tx) {
|
||||
return _this.signTransaction(tx).then(function (signedTx) {
|
||||
return _this.provider.sendTransaction(signedTx);
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var tx, signedTx;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
this._checkProvider("sendTransaction");
|
||||
return [4 /*yield*/, this.populateTransaction(transaction)];
|
||||
case 1:
|
||||
tx = _a.sent();
|
||||
return [4 /*yield*/, this.signTransaction(tx)];
|
||||
case 2:
|
||||
signedTx = _a.sent();
|
||||
return [4 /*yield*/, this.provider.sendTransaction(signedTx)];
|
||||
case 3: return [2 /*return*/, _a.sent()];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
@ -10271,6 +10281,8 @@
|
||||
}
|
||||
});
|
||||
}); });
|
||||
// Prevent this error from causing an UnhandledPromiseException
|
||||
tx.to.catch(function (error) { });
|
||||
}
|
||||
hasEip1559 = (tx.maxFeePerGas != null || tx.maxPriorityFeePerGas != null);
|
||||
if (tx.gasPrice != null && (tx.type === 2 || hasEip1559)) {
|
||||
@ -14692,7 +14704,7 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = void 0;
|
||||
exports.version = "contracts/5.4.0";
|
||||
exports.version = "contracts/5.4.1";
|
||||
|
||||
});
|
||||
|
||||
@ -15786,6 +15798,15 @@
|
||||
}
|
||||
logger.throwError("cannot override " + key, lib.Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
|
||||
});
|
||||
if (tx.value) {
|
||||
var value = lib$2.BigNumber.from(tx.value);
|
||||
if (!value.isZero() && !this.interface.deploy.payable) {
|
||||
logger.throwError("non-payable constructor cannot override value", lib.Logger.errors.UNSUPPORTED_OPERATION, {
|
||||
operation: "overrides.value",
|
||||
value: tx.value
|
||||
});
|
||||
}
|
||||
}
|
||||
// Make sure the call matches the constructor signature
|
||||
logger.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
|
||||
// Set the data to the bytecode + the encoded constructor arguments
|
||||
@ -20602,7 +20623,7 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = void 0;
|
||||
exports.version = "providers/5.4.2";
|
||||
exports.version = "providers/5.4.3";
|
||||
|
||||
});
|
||||
|
||||
@ -22445,7 +22466,7 @@
|
||||
}
|
||||
tx[key] = Promise.resolve(values[key]).then(function (v) { return (v ? _this._getAddress(v) : null); });
|
||||
});
|
||||
["gasLimit", "gasPrice", "value"].forEach(function (key) {
|
||||
["gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "value"].forEach(function (key) {
|
||||
if (values[key] == null) {
|
||||
return;
|
||||
}
|
||||
@ -23712,23 +23733,38 @@
|
||||
};
|
||||
JsonRpcProvider.prototype.perform = function (method, params) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var args, error_4;
|
||||
var tx, feeData, args, error_4;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
if (!(method === "call" || method === "estimateGas")) return [3 /*break*/, 2];
|
||||
tx = params.transaction;
|
||||
if (!(tx && tx.type != null && lib$2.BigNumber.from(tx.type).isZero())) return [3 /*break*/, 2];
|
||||
if (!(tx.maxFeePerGas == null && tx.maxPriorityFeePerGas == null)) return [3 /*break*/, 2];
|
||||
return [4 /*yield*/, this.getFeeData()];
|
||||
case 1:
|
||||
feeData = _a.sent();
|
||||
if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) {
|
||||
// Network doesn't know about EIP-1559 (and hence type)
|
||||
params = lib$3.shallowCopy(params);
|
||||
params.transaction = lib$3.shallowCopy(tx);
|
||||
delete params.transaction.type;
|
||||
}
|
||||
_a.label = 2;
|
||||
case 2:
|
||||
args = this.prepareRequest(method, params);
|
||||
if (args == null) {
|
||||
logger.throwError(method + " not implemented", lib.Logger.errors.NOT_IMPLEMENTED, { operation: method });
|
||||
}
|
||||
_a.label = 1;
|
||||
case 1:
|
||||
_a.trys.push([1, 3, , 4]);
|
||||
return [4 /*yield*/, this.send(args[0], args[1])];
|
||||
case 2: return [2 /*return*/, _a.sent()];
|
||||
_a.label = 3;
|
||||
case 3:
|
||||
_a.trys.push([3, 5, , 6]);
|
||||
return [4 /*yield*/, this.send(args[0], args[1])];
|
||||
case 4: return [2 /*return*/, _a.sent()];
|
||||
case 5:
|
||||
error_4 = _a.sent();
|
||||
return [2 /*return*/, checkError(method, error_4, params)];
|
||||
case 4: return [2 /*return*/];
|
||||
case 6: return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -26981,7 +27017,7 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = void 0;
|
||||
exports.version = "ethers/5.4.2";
|
||||
exports.version = "ethers/5.4.3";
|
||||
|
||||
});
|
||||
|
||||
|
2
packages/ethers/dist/ethers.umd.js.map
vendored
2
packages/ethers/dist/ethers.umd.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.umd.min.js
vendored
2
packages/ethers/dist/ethers.umd.min.js
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.umd.min.js.map
vendored
2
packages/ethers/dist/ethers.umd.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/lib.esm/_version.d.ts
vendored
2
packages/ethers/lib.esm/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "ethers/5.4.2";
|
||||
export declare const version = "ethers/5.4.3";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,2 +1,2 @@
|
||||
export const version = "ethers/5.4.2";
|
||||
export const version = "ethers/5.4.3";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/ethers/lib/_version.d.ts
vendored
2
packages/ethers/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "ethers/5.4.2";
|
||||
export declare const version = "ethers/5.4.3";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = void 0;
|
||||
exports.version = "ethers/5.4.2";
|
||||
exports.version = "ethers/5.4.3";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -4,14 +4,14 @@
|
||||
"dependencies": {
|
||||
"@ethersproject/abi": "5.4.0",
|
||||
"@ethersproject/abstract-provider": "5.4.0",
|
||||
"@ethersproject/abstract-signer": "5.4.0",
|
||||
"@ethersproject/abstract-signer": "5.4.1",
|
||||
"@ethersproject/address": "5.4.0",
|
||||
"@ethersproject/base64": "5.4.0",
|
||||
"@ethersproject/basex": "5.4.0",
|
||||
"@ethersproject/bignumber": "5.4.1",
|
||||
"@ethersproject/bytes": "5.4.0",
|
||||
"@ethersproject/constants": "5.4.0",
|
||||
"@ethersproject/contracts": "5.4.0",
|
||||
"@ethersproject/contracts": "5.4.1",
|
||||
"@ethersproject/hash": "5.4.0",
|
||||
"@ethersproject/hdnode": "5.4.0",
|
||||
"@ethersproject/json-wallets": "5.4.0",
|
||||
@ -20,7 +20,7 @@
|
||||
"@ethersproject/networks": "5.4.1",
|
||||
"@ethersproject/pbkdf2": "5.4.0",
|
||||
"@ethersproject/properties": "5.4.0",
|
||||
"@ethersproject/providers": "5.4.2",
|
||||
"@ethersproject/providers": "5.4.3",
|
||||
"@ethersproject/random": "5.4.0",
|
||||
"@ethersproject/rlp": "5.4.0",
|
||||
"@ethersproject/sha2": "5.4.0",
|
||||
@ -62,7 +62,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x101342a457ebe4f40aab8c65646df04b75c020779097a1ae6795469ebafdb0bb",
|
||||
"tarballHash": "0x10c045b45834f583f885a0d05f6b28d82f5131608483856585b80961a9171c32",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.4.2"
|
||||
"version": "5.4.3"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "ethers/5.4.2";
|
||||
export const version = "ethers/5.4.3";
|
||||
|
2
packages/providers/lib.esm/_version.d.ts
vendored
2
packages/providers/lib.esm/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "providers/5.4.2";
|
||||
export declare const version = "providers/5.4.3";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,2 +1,2 @@
|
||||
export const version = "providers/5.4.2";
|
||||
export const version = "providers/5.4.3";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1090,7 +1090,7 @@ export class BaseProvider extends Provider {
|
||||
}
|
||||
tx[key] = Promise.resolve(values[key]).then((v) => (v ? this._getAddress(v) : null));
|
||||
});
|
||||
["gasLimit", "gasPrice", "value"].forEach((key) => {
|
||||
["gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "value"].forEach((key) => {
|
||||
if (values[key] == null) {
|
||||
return;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"version":3,"file":"json-rpc-provider.d.ts","sourceRoot":"","sources":["../src.ts/json-rpc-provider.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACrG,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAE1G,OAAO,EAAE,KAAK,EAAkC,MAAM,sBAAsB,CAAC;AAE7E,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAA6B,UAAU,EAA6D,MAAM,2BAA2B,CAAC;AAE7I,OAAO,EAAE,UAAU,EAAiB,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,cAAc,EAAmB,MAAM,oBAAoB,CAAC;AAMrE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AA6FtD,qBAAa,aAAc,SAAQ,MAAO,YAAW,eAAe;IAChE,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;gBAEL,gBAAgB,EAAE,GAAG,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM;IA0B9F,OAAO,CAAC,QAAQ,EAAE,QAAQ,GAAG,aAAa;IAM1C,gBAAgB,IAAI,aAAa;IAIjC,UAAU,IAAI,OAAO,CAAC,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KAAK,EAAE,KAAK,GAAG,IAAI;IAK/B,aAAa,IAAI,IAAI;IA2CrB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAiB9B,MAAM,CAAC,kBAAkB,CAAC,WAAW,EAAE,kBAAkB,EAAE,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAA;KAAE;CAgC9I"}
|
@ -455,6 +455,23 @@ export class JsonRpcProvider extends BaseProvider {
|
||||
}
|
||||
perform(method, params) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
// Legacy networks do not like the type field being passed along (which
|
||||
// is fair), so we delete type if it is 0 and a non-EIP-1559 network
|
||||
if (method === "call" || method === "estimateGas") {
|
||||
const tx = params.transaction;
|
||||
if (tx && tx.type != null && BigNumber.from(tx.type).isZero()) {
|
||||
// If there are no EIP-1559 properties, it might be non-EIP-a559
|
||||
if (tx.maxFeePerGas == null && tx.maxPriorityFeePerGas == null) {
|
||||
const feeData = yield this.getFeeData();
|
||||
if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) {
|
||||
// Network doesn't know about EIP-1559 (and hence type)
|
||||
params = shallowCopy(params);
|
||||
params.transaction = shallowCopy(tx);
|
||||
delete params.transaction.type;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
const args = this.prepareRequest(method, params);
|
||||
if (args == null) {
|
||||
logger.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
|
||||
|
File diff suppressed because one or more lines are too long
2
packages/providers/lib/_version.d.ts
vendored
2
packages/providers/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "providers/5.4.2";
|
||||
export declare const version = "providers/5.4.3";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = void 0;
|
||||
exports.version = "providers/5.4.2";
|
||||
exports.version = "providers/5.4.3";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1380,7 +1380,7 @@ var BaseProvider = /** @class */ (function (_super) {
|
||||
}
|
||||
tx[key] = Promise.resolve(values[key]).then(function (v) { return (v ? _this._getAddress(v) : null); });
|
||||
});
|
||||
["gasLimit", "gasPrice", "value"].forEach(function (key) {
|
||||
["gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "value"].forEach(function (key) {
|
||||
if (values[key] == null) {
|
||||
return;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"version":3,"file":"json-rpc-provider.d.ts","sourceRoot":"","sources":["../src.ts/json-rpc-provider.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACrG,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAE1G,OAAO,EAAE,KAAK,EAAkC,MAAM,sBAAsB,CAAC;AAE7E,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAA6B,UAAU,EAA6D,MAAM,2BAA2B,CAAC;AAE7I,OAAO,EAAE,UAAU,EAAiB,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,cAAc,EAAmB,MAAM,oBAAoB,CAAC;AAMrE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AA6FtD,qBAAa,aAAc,SAAQ,MAAO,YAAW,eAAe;IAChE,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;gBAEL,gBAAgB,EAAE,GAAG,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,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AAK,CAAC,GAAG,CAAC,CAAE;IA4D7D,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IA+BxD,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAK/B,aAAa,IAAI,IAAI;IA2CrB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAiB9B,MAAM,CAAC,kBAAkB,CAAC,WAAW,EAAE,kBAAkB,EAAE,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAA;KAAE;CAgC9I"}
|
@ -600,23 +600,38 @@ var JsonRpcProvider = /** @class */ (function (_super) {
|
||||
};
|
||||
JsonRpcProvider.prototype.perform = function (method, params) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var args, error_4;
|
||||
var tx, feeData, args, error_4;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
if (!(method === "call" || method === "estimateGas")) return [3 /*break*/, 2];
|
||||
tx = params.transaction;
|
||||
if (!(tx && tx.type != null && bignumber_1.BigNumber.from(tx.type).isZero())) return [3 /*break*/, 2];
|
||||
if (!(tx.maxFeePerGas == null && tx.maxPriorityFeePerGas == null)) return [3 /*break*/, 2];
|
||||
return [4 /*yield*/, this.getFeeData()];
|
||||
case 1:
|
||||
feeData = _a.sent();
|
||||
if (feeData.maxFeePerGas == null && feeData.maxPriorityFeePerGas == null) {
|
||||
// Network doesn't know about EIP-1559 (and hence type)
|
||||
params = properties_1.shallowCopy(params);
|
||||
params.transaction = properties_1.shallowCopy(tx);
|
||||
delete params.transaction.type;
|
||||
}
|
||||
_a.label = 2;
|
||||
case 2:
|
||||
args = this.prepareRequest(method, params);
|
||||
if (args == null) {
|
||||
logger.throwError(method + " not implemented", logger_1.Logger.errors.NOT_IMPLEMENTED, { operation: method });
|
||||
}
|
||||
_a.label = 1;
|
||||
case 1:
|
||||
_a.trys.push([1, 3, , 4]);
|
||||
return [4 /*yield*/, this.send(args[0], args[1])];
|
||||
case 2: return [2 /*return*/, _a.sent()];
|
||||
_a.label = 3;
|
||||
case 3:
|
||||
_a.trys.push([3, 5, , 6]);
|
||||
return [4 /*yield*/, this.send(args[0], args[1])];
|
||||
case 4: return [2 /*return*/, _a.sent()];
|
||||
case 5:
|
||||
error_4 = _a.sent();
|
||||
return [2 /*return*/, checkError(method, error_4, params)];
|
||||
case 4: return [2 /*return*/];
|
||||
case 6: return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
@ -66,7 +66,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0xc3c1036135564a620f72f2fdb5f5722d080d30963fd5a05ab091b5fd1b57eff8",
|
||||
"tarballHash": "0x9f56d24890af8f005e3de6e44f527ed98a6d975db78496543804271dc0658757",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.4.2"
|
||||
"version": "5.4.3"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "providers/5.4.2";
|
||||
export const version = "providers/5.4.3";
|
||||
|
Loading…
Reference in New Issue
Block a user