@@ -191,7 +191,7 @@ class Disputes {
191191 * @param {number } appeal - The appeal number. 0 if there have been no appeals.
192192 * @returns {number } timestamp of the appeal
193193 */
194- getDisputeDeadline = async ( disputeId , account , appeal = 0 ) => {
194+ getDisputeDeadline = async ( disputeId , account , appeal = 0 ) => {
195195 const cachedDispute = this . disputeCache [ disputeId ]
196196 if (
197197 cachedDispute &&
@@ -211,7 +211,9 @@ class Disputes {
211211
212212 // cache the deadline for the appeal
213213 if ( deadlineTimestamps . length > 0 )
214- this . _updateDisputeCache ( disputeId , { appealDeadlines : deadlineTimestamps } )
214+ this . _updateDisputeCache ( disputeId , {
215+ appealDeadlines : deadlineTimestamps
216+ } )
215217
216218 return deadlineTimestamps [ appeal ]
217219 }
@@ -223,7 +225,7 @@ class Disputes {
223225 * @param {number } appeal - The appeal number. 0 if there have been no appeals.
224226 * @returns {number } timestamp of the appeal
225227 */
226- getAppealRuledAt = async ( disputeId , account , appeal = 0 ) => {
228+ getAppealRuledAt = async ( disputeId , account , appeal = 0 ) => {
227229 const cachedDispute = this . disputeCache [ disputeId ]
228230 if (
229231 cachedDispute &&
@@ -243,7 +245,9 @@ class Disputes {
243245
244246 // cache the deadline for the appeal
245247 if ( appealRuledAtTimestamps . length > 0 ) {
246- this . _updateDisputeCache ( disputeId , { appealRuledAt : appealRuledAtTimestamps } )
248+ this . _updateDisputeCache ( disputeId , {
249+ appealRuledAt : appealRuledAtTimestamps
250+ } )
247251 }
248252
249253 return appealRuledAtTimestamps [ appeal ]
@@ -256,7 +260,7 @@ class Disputes {
256260 * @param {number } appeal - The appeal number. 0 if there have been no appeals.
257261 * @returns {number } timestamp of the appeal
258262 */
259- getAppealCreatedAt = async ( disputeId , account , appeal = 0 ) => {
263+ getAppealCreatedAt = async ( disputeId , account , appeal = 0 ) => {
260264 const cachedDispute = this . disputeCache [ disputeId ]
261265 if (
262266 cachedDispute &&
@@ -276,10 +280,9 @@ class Disputes {
276280
277281 // cache the deadline for the appeal
278282 if ( appealCreatedAtTimestamps ) {
279- this . _updateDisputeCache (
280- disputeId ,
281- { appealCreatedAt : appealCreatedAtTimestamps }
282- )
283+ this . _updateDisputeCache ( disputeId , {
284+ appealCreatedAt : appealCreatedAtTimestamps
285+ } )
283286 }
284287
285288 return appealCreatedAtTimestamps [ appeal ]
@@ -331,7 +334,7 @@ class Disputes {
331334 // eslint-disable-next-line no-unused-vars
332335 } catch ( err ) {
333336 // Dispute exists on chain but not in store. We have lost draws for past disputes.
334- console . error ( " Dispute does not exist in store." )
337+ console . error ( ' Dispute does not exist in store.' )
335338 }
336339
337340 const netPNK = await this . _ArbitratorInstance . getNetTokensForDispute (
@@ -358,7 +361,6 @@ class Disputes {
358361
359362 // Extra info for the last appeal
360363 if ( isLastAppeal ) {
361- console . log ( draws )
362364 if ( draws . length > 0 )
363365 rulingPromises . push (
364366 this . _ArbitratorInstance . canRuleDispute ( disputeId , draws , account )
0 commit comments