Skip to content

Commit

Permalink
feat(state channel): make state channel compatible with aeternity@4.0…
Browse files Browse the repository at this point in the history
….0 (#568)
  • Loading branch information
mpowaga authored and nduchak committed Jul 26, 2019
1 parent 3cc27f2 commit 0d0e09b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
TAG=v3.3.0
TAG=v4.0.0
COMPILER_TAG=v3.2.0
12 changes: 9 additions & 3 deletions es/channel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ function callContract ({ amount, callData, contract, abiVersion }, sign) {
params: {
amount,
call_data: callData,
contract,
contract_id: contract,
abi_version: abiVersion
}
})
Expand Down Expand Up @@ -552,7 +552,7 @@ async function callContractStatic ({ amount, callData, contract, abiVersion }) {
return snakeToPascalObjKeys(await call(this, 'channels.dry_run.call_contract', {
amount,
call_data: callData,
contract,
contract_id: contract,
abi_version: abiVersion
}))
}
Expand All @@ -577,7 +577,13 @@ async function callContractStatic ({ amount, callData, contract, abiVersion }) {
* })
*/
async function getContractCall ({ caller, contract, round }) {
return snakeToPascalObjKeys(await call(this, 'channels.get.contract_call', { caller, contract, round }))
return snakeToPascalObjKeys(
await call(this, 'channels.get.contract_call', {
caller_id: caller,
contract_id: contract,
round
})
)
}

/**
Expand Down

0 comments on commit 0d0e09b

Please sign in to comment.