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.8.0 to 0.8.1

7

build/middleware.js

@@ -39,4 +39,4 @@ "use strict";

gasHex = extractHex(gasRaw);
multiplied = (0, bn_1.toBn)(gasHex, 16).multipliedBy(threshold).toString(16);
params["gas"] = "0x" + multiplied;
multiplied = (0, bn_1.toBn)(gasHex, 16).multipliedBy(threshold).toFixed(0);
params["gas"] = withPrefix((0, bn_1.toBn)(multiplied).toString(16));
}

@@ -57,2 +57,5 @@ _a.label = 3;

exports.createEstimateGasMiddleware = createEstimateGasMiddleware;
function withPrefix(value) {
return "0x" + value;
}
function extractHex(value) {

@@ -59,0 +62,0 @@ return value.startsWith("0x") ? value.substring(2) : value;

{
"name": "@rarible/estimate-middleware",
"version": "0.8.0",
"version": "0.8.1",
"keywords": [

@@ -26,2 +26,3 @@ "rarible",

"dependencies": {
"@rarible/utils": "^0.8.0",
"eth-json-rpc-middleware": "^8.0.1",

@@ -39,3 +40,3 @@ "json-rpc-engine": "^6.1.0"

},
"gitHead": "b479d35d781f734acb57b50b0d931c2836cfa9ae"
"gitHead": "169b69c24186ad9fbb4f959b2b7f96386279a881"
}

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