Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
feat(contract): convert wei amount to eth
Browse files Browse the repository at this point in the history
  • Loading branch information
n1c01a5 committed Nov 12, 2018
1 parent f746439 commit b729e73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kleros-api-2",
"version": "0.18.8",
"version": "0.18.9",
"description": "A Javascript library that makes it easy to build relayers and other DApps that use the Kleros protocol.",
"keywords": [
"Blockchain",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,10 @@ class MultipleArbitrableTransaction extends Arbitrable {
return {
seller: arbitrableTransaction[0],
buyer: arbitrableTransaction[1],
amount: arbitrableTransaction[2].toNumber(),
amount: this._Web3Wrapper.fromWei(
arbitrableTransaction[2].toNumber(),
'ether'
),
timeout: arbitrableTransaction[3].toNumber(),
disputeId: arbitrableTransaction[4].toNumber(),
arbitrator: arbitrableTransaction[5],
Expand Down

0 comments on commit b729e73

Please sign in to comment.