Socket
Socket
Sign inDemoInstall

@ethersproject/abstract-signer

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/abstract-signer - npm Package Compare versions

Comparing version 5.4.0 to 5.4.1

2

lib.esm/_version.d.ts

@@ -1,2 +0,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 +0,2 @@

export const version = "abstract-signer/5.4.0";
export const version = "abstract-signer/5.4.1";
//# sourceMappingURL=_version.js.map

@@ -64,7 +64,7 @@ "use strict";

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);
});

@@ -151,2 +151,4 @@ }

}));
// Prevent this error from causing an UnhandledPromiseException
tx.to.catch((error) => { });
}

@@ -153,0 +155,0 @@ // Do not allow mixing pre-eip-1559 and eip-1559 proerties

@@ -1,2 +0,2 @@

export declare const version = "abstract-signer/5.4.0";
export declare const version = "abstract-signer/5.4.1";
//# sourceMappingURL=_version.d.ts.map
"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

@@ -139,7 +139,17 @@ "use strict";

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()];
}
});

@@ -267,2 +277,4 @@ });

}); });
// Prevent this error from causing an UnhandledPromiseException
tx.to.catch(function (error) { });
}

@@ -269,0 +281,0 @@ hasEip1559 = (tx.maxFeePerGas != null || tx.maxPriorityFeePerGas != null);

@@ -22,3 +22,3 @@ {

],
"gitHead": "c2c0ce75039e7256b287f9a764188d08ed0b7296",
"gitHead": "68229ac0aff790b083717dc73cd84f38d32a3926",
"keywords": [

@@ -44,5 +44,5 @@ "Ethereum",

"sideEffects": false,
"tarballHash": "0x8c090123662370f27356110b775c8ae479d2fbe3e6794b33bdcc9a4ab70ebaed",
"tarballHash": "0xd92a067be6d0ada9205b48af7af6806d0d3d5e2f876276e48ef3c552837116d8",
"types": "./lib/index.d.ts",
"version": "5.4.0"
"version": "5.4.1"
}

@@ -1,1 +0,1 @@

export const version = "abstract-signer/5.4.0";
export const version = "abstract-signer/5.4.1";

@@ -122,9 +122,7 @@ "use strict";

// Populates all fields in a transaction, signs it and sends it to the network
sendTransaction(transaction: Deferrable<TransactionRequest>): Promise<TransactionResponse> {
async sendTransaction(transaction: Deferrable<TransactionRequest>): Promise<TransactionResponse> {
this._checkProvider("sendTransaction");
return this.populateTransaction(transaction).then((tx) => {
return this.signTransaction(tx).then((signedTx) => {
return this.provider.sendTransaction(signedTx);
});
});
const tx = await this.populateTransaction(transaction);
const signedTx = await this.signTransaction(tx);
return await this.provider.sendTransaction(signedTx);
}

@@ -213,2 +211,5 @@

});
// Prevent this error from causing an UnhandledPromiseException
tx.to.catch((error) => { });
}

@@ -215,0 +216,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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