diff --git a/package.json b/package.json index 4bd8568d..0438c03d 100644 --- a/package.json +++ b/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", diff --git a/src/chain/tezos/TezosNodeWriter.ts b/src/chain/tezos/TezosNodeWriter.ts index a957bb03..2ec3ddfb 100644 --- a/src/chain/tezos/TezosNodeWriter.ts +++ b/src/chain/tezos/TezosNodeWriter.ts @@ -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; } }