conseiljs
Advanced tools
Comparing version 5.0.9-beta.6 to 5.0.9-beta.7
@@ -364,3 +364,2 @@ "use strict"; | ||
for (let i = 0; i < operations.length; i++) { | ||
const operation = operations[i]; | ||
let priorConsumedResources = { gas: 0, storageCost: 0 }; | ||
@@ -398,4 +397,4 @@ if (i > 0) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const naiveOperationGasCap = Math.floor(TezosConstants_1.TezosConstants.BlockGasCap / operations.length).toString(); | ||
const localOperations = [...operations].map(o => { return Object.assign({ gas_limit: naiveOperationGasCap, storage_limit: TezosConstants_1.TezosConstants.OperationStorageCap.toString() }, o); }); | ||
const naiveOperationGasCap = Math.min(Math.floor(TezosConstants_1.TezosConstants.BlockGasCap / operations.length), TezosConstants_1.TezosConstants.OperationGasCap).toString(); | ||
const localOperations = [...operations].map(o => { return Object.assign(Object.assign({}, o), { gas_limit: naiveOperationGasCap, storage_limit: TezosConstants_1.TezosConstants.OperationStorageCap.toString() }); }); | ||
const responseJSON = yield dryRunOperation(server, chainid, ...localOperations); | ||
@@ -402,0 +401,0 @@ let gas = 0; |
{ | ||
"name": "conseiljs", | ||
"version": "5.0.9-beta.6", | ||
"version": "5.0.9-beta.7", | ||
"description": "Client-side library for Tezos dApp development.", | ||
@@ -5,0 +5,0 @@ "browser": "dist/index-web.js", |
@@ -62,3 +62,3 @@ # ConseilJS-core | ||
<script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs/dist-web/conseiljs.min.js" | ||
integrity="sha384-4c7dfY2bEDagrsOUBPZhz/6Gr93P6PZYkRL8/1EubUoX45hiGjwOfl/V8Sh2z+We" | ||
integrity="sha384-00+mCQozoha9AxOWtEN+VW/3vMpSBrANeDsYMEioopddFtFoidSiR3X+B+87l1mP" | ||
crossorigin="anonymous"></script> | ||
@@ -65,0 +65,0 @@ <script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs-softsigner/dist-web/conseiljs-softsigner.min.js" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
891742
0
8573