@rarible/estimate-middleware
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -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
31018
173
3
+ Added@rarible/utils@^0.8.0
+ Added@rarible/utils@0.8.0(transitive)
+ Addedbignumber.js@9.1.2(transitive)
+ Addedtslib@2.8.1(transitive)