Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
fix: ContractExecResultV2
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleydon committed Nov 9, 2022
1 parent 17d72ae commit e08a938
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@phala/sdk",
"version": "0.3.5-beta.1",
"version": "0.3.5-beta.2",
"description": "Phala JS SDK",
"homepage": "https://github.com/Phala-Network/js-sdk/tree/main/packages/sdk#readme",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ export const create: CreateFn = async ({api, baseURL, contractId}) => {
inkMessageReturn
) as any

result.gasConsumed = result.gasConsumed.proofSize
result.gasRequired = result.gasRequired.proofSize
result.gasConsumed = result.gasConsumedV2.proofSize
result.gasRequired = result.gasRequiredV2.proofSize
}

return result
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export const types: RegistryTypes = {
},
InkCommand: {_enum: {InkMessage: 'InkMessage'}},
ContractExecResultV2: {
gasConsumed: 'WeightV2',
gasRequired: 'WeightV2',
gasConsumedV2: 'WeightV2',
gasRequiredV2: 'WeightV2',
storageDeposit: 'StorageDeposit',
debugMessage: 'Text',
result: 'ContractExecResultResult',
Expand Down

0 comments on commit e08a938

Please sign in to comment.