Skip to content
Permalink
Browse files

feat(disputes): return dispute status

  • Loading branch information...
epiqueras authored and satello committed Feb 13, 2018
1 parent 7ee05f5 commit 32db45c3a2152b6ce5fec6332d1964c25e6e4e49
Showing with 3 additions and 1 deletion.
  1. +1 −0 src/abstractWrappers/Disputes.js
  2. +2 −1 src/contractWrappers/KlerosWrapper.js
@@ -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,
@@ -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)

0 comments on commit 32db45c

Please sign in to comment.
You can’t perform that action at this time.