Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rarible/estimate-middleware

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rarible/estimate-middleware - npm Package Compare versions

Comparing version 0.6.1 to 0.6.3

10

build/middleware.js

@@ -15,3 +15,3 @@ "use strict";

return (0, json_rpc_engine_1.createAsyncMiddleware)(function (req, _, next) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () {
var tx, gasPrice, estimateParams, response;
var tx, response;
return (0, tslib_1.__generator)(this, function (_a) {

@@ -25,4 +25,3 @@ switch (_a.label) {

if (!(force || typeof tx.gas === "undefined")) return [3 /*break*/, 2];
gasPrice = tx.gasPrice, estimateParams = (0, tslib_1.__rest)(tx, ["gasPrice"]);
return [4 /*yield*/, engine.handle((0, tslib_1.__assign)((0, tslib_1.__assign)({}, req), { params: [estimateParams], method: "eth_estimateGas" }))];
return [4 /*yield*/, engine.handle((0, tslib_1.__assign)((0, tslib_1.__assign)({}, req), { params: [getEstimateParams(tx)], method: "eth_estimateGas" }))];
case 1:

@@ -54,1 +53,6 @@ response = _a.sent();

}
function getEstimateParams(x) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
var gasPrice = x.gasPrice, maxPriorityFeePerGas = x.maxPriorityFeePerGas, maxFeePerGas = x.maxFeePerGas, rest = (0, tslib_1.__rest)(x, ["gasPrice", "maxPriorityFeePerGas", "maxFeePerGas"]);
return rest;
}
{
"name": "@rarible/estimate-middleware",
"version": "0.6.1",
"version": "0.6.3",
"keywords": [

@@ -37,3 +37,3 @@ "rarible",

},
"gitHead": "412062d9c0ee21f3de300aad9bc51238e5b4c3cb"
"gitHead": "0c3dbac8c7b7c80a84c121ac36df5b7b94aaafa6"
}

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