Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Commit 66a1c72

Browse files
committed
feat: adds gas unit
1 parent d7d7dfe commit 66a1c72

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

resources/views/accounts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="text-gray-100">
33
Block: <?php echo $blockNumber; ?>
44
<span class="ml-2 text-gray-50">⟩</span>
5-
Gas price: <?php echo $gasPrice; ?>
5+
Gas price: <?php echo $gasPrice->toEth(); ?> ETH
66
</div>
77

88
<div class="mt-1">

src/Watchers/Accounts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function watch(): void
4646

4747
View::render('accounts', [
4848
'accounts' => $accounts,
49-
'gasPrice' => $this->web3->eth()->gasPrice()->toWei(),
49+
'gasPrice' => $this->web3->eth()->gasPrice(),
5050
'blockNumber' => '0', // @todo
5151
]);
5252
}

0 commit comments

Comments
 (0)