conseiljs
Advanced tools
Comparing version 5.0.7-beta.2 to 5.0.7-beta.3
@@ -264,4 +264,4 @@ "use strict"; | ||
for (let i = 0; i < operations.length; i++) { | ||
operation[i].gas_limit = estimate.operationResources[i].gas.toString(); | ||
operation[i].storage_limit = estimate.operationResources[i].storageCost.toString(); | ||
operations[i].gas_limit = estimate.operationResources[i].gas.toString(); | ||
operations[i].storage_limit = estimate.operationResources[i].storageCost.toString(); | ||
} | ||
@@ -278,5 +278,5 @@ } | ||
parsedCode = JSON.parse(TezosLanguageUtil_1.TezosLanguageUtil.translateMichelsonToMicheline(code)); | ||
log.debug(`TezosNodeWriter.sendOriginationOperation code translation:\n${code}\n->\n${JSON.stringify(parsedCode)}`); | ||
log.debug(`TezosNodeWriter.constructContractOriginationOperation code translation:\n${code}\n->\n${JSON.stringify(parsedCode)}`); | ||
parsedStorage = JSON.parse(TezosLanguageUtil_1.TezosLanguageUtil.translateMichelsonToMicheline(storage)); | ||
log.debug(`TezosNodeWriter.sendOriginationOperation storage translation:\n${storage}\n->\n${JSON.stringify(parsedStorage)}`); | ||
log.debug(`TezosNodeWriter.constructContractOriginationOperation storage translation:\n${storage}\n->\n${JSON.stringify(parsedStorage)}`); | ||
} | ||
@@ -424,3 +424,4 @@ else if (codeFormat === TezosTypes.TezosParameterFormat.Micheline) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const responseJSON = yield dryRunOperation(server, chainid, ...operations); | ||
const localOperations = [...operations].map(o => { return Object.assign(Object.assign({}, o), { gas_limit: TezosConstants_1.TezosConstants.OperationGasCap.toString(), storage_limit: TezosConstants_1.TezosConstants.OperationStorageCap.toString() }); }); | ||
const responseJSON = yield dryRunOperation(server, chainid, ...localOperations); | ||
let gas = 0; | ||
@@ -427,0 +428,0 @@ let storageCost = 0; |
{ | ||
"name": "conseiljs", | ||
"version": "5.0.7-beta.2", | ||
"version": "5.0.7-beta.3", | ||
"description": "Client-side library for Tezos dApp development.", | ||
@@ -5,0 +5,0 @@ "browser": "dist/index-web.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
784359
7564