Skip to content
Permalink
Browse files

feat: add getDataFromStore to abstractions/Arbitrable

  • Loading branch information...
satello committed Apr 18, 2018
1 parent e5c893a commit 54e65baa4a523aba0f9cf645bd2a3921f0521691
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/contracts/abstractions/Arbitrable.js
@@ -139,6 +139,20 @@ class ArbitrableContract extends AbstractContract {
return partyAEvidence.concat(partyBEvidence)
}

/**
* Fetch all data from the store on the current contract.
* @returns {object} - Store data for contract.
*/
getDataFromStore = async () => {
const contractInstance = await this._contractImplementation.loadContract()
const partyA = await contractInstance.partyA()

return this._StoreProvider.getContractByAddress(
partyA,
this._contractImplementation.contractAddress
)
}

/**
* Get data from the store and contract for Arbitrable Contract.
* @param {string} account - ETH address of user.

0 comments on commit 54e65ba

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