Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #178 from etclabscore/fix/add-units
Browse files Browse the repository at this point in the history
fix: add units
  • Loading branch information
shanejonas authored Nov 19, 2019
2 parents 1ad10b6 + 9f2dcd5 commit c7590d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/TxView/TxView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ function TxView(props: ITxViewProps) {

<TableRow>
<TableCell>{t("Gas Price")}</TableCell>
<TableCell>{hexToNumber(tx.gasPrice)}</TableCell>
<TableCell>{hexToNumber(tx.gasPrice)} Wei</TableCell>
</TableRow>

<TableRow>
<TableCell>{t("Value")}</TableCell>
<TableCell>{unit.fromWei(tx.value, "ether")}</TableCell>
<TableCell>{unit.fromWei(tx.value, "ether")} Ether</TableCell>
</TableRow>

<TableRow>
Expand Down Expand Up @@ -174,8 +174,8 @@ function TxView(props: ITxViewProps) {
</TableRow>

<TableRow>
<TableCell>{t("Value in Ether")}</TableCell>
<TableCell>{unit.fromWei(tx.value, "ether")}</TableCell>
<TableCell>{t("Value")}</TableCell>
<TableCell>{unit.fromWei(tx.value, "ether")} Ether</TableCell>
</TableRow>

<TableRow>
Expand Down

0 comments on commit c7590d9

Please sign in to comment.