Navigation Menu

Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
feat(disputes): return dispute status
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras authored and satello committed Feb 14, 2018
1 parent 7ee05f5 commit 32db45c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/abstractWrappers/Disputes.js
Expand Up @@ -541,6 +541,7 @@ class Disputes extends AbstractWrapper {
partyB: arbitrableContractData.partyB,
arbitrableContractStatus: arbitrableContractData.status,
disputeState: dispute.state,
disputeStatus: dispute.status,
arbitrableContractAddress: arbitrableContractAddress,
arbitratorAddress: arbitratorAddress,
fee: dispute.arbitrationFeePerJuror,
Expand Down
3 changes: 2 additions & 1 deletion src/contractWrappers/KlerosWrapper.js
Expand Up @@ -381,7 +381,8 @@ class KlerosWrapper extends ContractWrapper {
rulingChoices: dispute[3].toNumber(),
initialNumberJurors: dispute[4].toNumber(),
arbitrationFeePerJuror: dispute[5].toNumber(),
state: dispute[6].toNumber()
state: dispute[6].toNumber(),
status: (await contractInstance.disputeStatus(disputeId)).toNumber()
}
} catch (e) {
throw new Error(e)
Expand Down

0 comments on commit 32db45c

Please sign in to comment.