Skip to content

Commit

Permalink
Merge pull request #368 from Cryptonomic/508-parser
Browse files Browse the repository at this point in the history
Fix storage estimation for with nested originations
  • Loading branch information
anonymoussprocket committed Mar 20, 2021
2 parents 6c12b34 + 65d5c4b commit c975e32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "conseiljs",
"version": "5.0.8",
"version": "5.0.8-1",
"description": "Client-side library for Tezos dApp development.",
"browser": "dist/index-web.js",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/chain/tezos/TezosNodeWriter.ts
Expand Up @@ -800,7 +800,7 @@ export namespace TezosNodeWriter {
const result = internalOperation['result'];
gas += parseInt(result['consumed_gas']) || 0;
storageCost += parseInt(result['paid_storage_size_diff']) || 0;
if (result.kind === 'origination' || c['metadata']['operation_result']['allocated_destination_contract']) {
if (internalOperation.kind === 'origination') {
storageCost += TezosConstants.EmptyAccountStorageBurn;
}
}
Expand Down

0 comments on commit c975e32

Please sign in to comment.