Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/contracts/abstractions/Arbitrable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down