conseiljs
Advanced tools
Comparing version 5.0.7-beta.4 to 5.0.7
@@ -343,4 +343,2 @@ "use strict"; | ||
} | ||
case 'chain_id': { | ||
} | ||
case 'bytes': { | ||
@@ -347,0 +345,0 @@ const buffer = value.toString('hex'); |
@@ -377,5 +377,6 @@ "use strict"; | ||
} | ||
const validBranch = 'BMLxA4tQjiu1PT2x3dMiijgvMTQo8AVxkPBPpdtM8hCfiyiC1jz'; | ||
const gasLimitTotal = operationResources.map(r => r.gas).reduce((a, c) => a + c, 0); | ||
const storageLimitTotal = operationResources.map(r => r.storageCost).reduce((a, c) => a + c, 0); | ||
const forgedOperationGroup = forgeOperations('BMLxA4tQjiu1PT2x3dMiijgvMTQo8AVxkPBPpdtM8hCfiyiC1jz', operations); | ||
const forgedOperationGroup = forgeOperations(validBranch, operations); | ||
const groupSize = forgedOperationGroup.length / 2 + 64; | ||
@@ -420,3 +421,4 @@ let estimatedFee = Math.ceil(gasLimitTotal / 10) + TezosConstants_1.TezosConstants.BaseOperationFee + groupSize + TezosConstants_1.TezosConstants.DefaultBakerVig; | ||
} | ||
const forgedOperationGroup = forgeOperations('BMLxA4tQjiu1PT2x3dMiijgvMTQo8AVxkPBPpdtM8hCfiyiC1jz', operations); | ||
const validBranch = 'BMLxA4tQjiu1PT2x3dMiijgvMTQo8AVxkPBPpdtM8hCfiyiC1jz'; | ||
const forgedOperationGroup = forgeOperations(validBranch, operations); | ||
const operationSize = forgedOperationGroup.length / 2 + 64; | ||
@@ -507,13 +509,17 @@ const estimatedFee = Math.ceil(gas / 10) + TezosConstants_1.TezosConstants.BaseOperationFee + operationSize + TezosConstants_1.TezosConstants.DefaultBakerVig; | ||
function parseRPCOperationResult(result) { | ||
if (result.status === 'failed') { | ||
return `${result.status}: ${result.errors.map(e => `(${e.kind}: ${e.id})`).join(', ')}`; | ||
if (result.status !== 'applied') { | ||
let error = result.status; | ||
if (result.errors && result.errors.length > 0) { | ||
try { | ||
error += result.errors.map(e => `(${e.kind}: ${e.id})`).join(', '); | ||
} | ||
catch (_a) { | ||
log.error(`failed to parse errors from '${result}'\n, PLEASE report this to the maintainers`); | ||
} | ||
} | ||
return error; | ||
} | ||
else if (result.status === 'applied') { | ||
return ''; | ||
} | ||
else { | ||
return result.status; | ||
} | ||
return ''; | ||
} | ||
})(TezosNodeWriter = exports.TezosNodeWriter || (exports.TezosNodeWriter = {})); | ||
//# sourceMappingURL=TezosNodeWriter.js.map |
@@ -38,5 +38,2 @@ "use strict"; | ||
return r; | ||
}).catch(e => { | ||
log.error('executeEntityQuery request error, ', e); | ||
return []; | ||
}) | ||
@@ -48,5 +45,2 @@ .then(r => { | ||
return response; | ||
}).catch(e => { | ||
log.error('executeEntityQuery response error, ', e); | ||
return []; | ||
}); | ||
@@ -53,0 +47,0 @@ }); |
{ | ||
"name": "conseiljs", | ||
"version": "5.0.7-beta.4", | ||
"version": "5.0.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-PNgOUrCFUbpIF6W1GSjxT8Iwjfe4nt2+mtT7IRsI//8P7akhhrmedJ0DFZqrzDty" | ||
integrity="sha384-sEYMVfIFpMORsZMgO4YyC0/fVSRBZjbkCYnA5A6HxBpKbxhbLG475Ru1hOjWSK7f" | ||
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
782512
7553