-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
Closes #107. Enables kleros/kleros-juror-front#10
Pull Request Test Coverage Report for Build 546
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Good cleanup all around
} else { | ||
throw new Error('unable to buy PNK') | ||
} | ||
await this._Arbitrator.buyPNK(amount, arbitratorAddress, account) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how clean these are now but we won't really get user friendly errors if we don't catch them since it will just throw either truffle contract or EVM errors (which I barely consider semantic). I am assuming you are planning on giving something more user friendly on the front end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm i see you throw something nice a layer lower
@@ -261,6 +261,7 @@ describe('Dispute Resolution', () => { | |||
klerosPOCAddress, | |||
other | |||
) | |||
console.info(newState) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove log
openDisputes.push(disputeId) | ||
|
||
// Advance to the next dispute | ||
disputeId++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice. much cleaner
Not sure what happened on that second test. Looks like a VM exception slipped through the cracks somewhere |
@satello |
Closes #107. Enables kleros/kleros-juror-front#10