Skip to content

Commit

Permalink
use mainnet etherscan + use 4 digits for wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfderechter committed Jun 23, 2024
1 parent 57d9d69 commit 6f9e2e8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning].

## [Unreleased]

## [1.4.2] - 2024-06-19

### Fixed

- use mainnet etherscan
- show 4 fixed digits for eth balances

## [1.4.1] - 2024-06-06

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
alt="ethereum icon"
/>
<a
href="https://holesky.etherscan.io/address/{customAddressL1}"
href="https://etherscan.io/address/{customAddressL1}"
target="”_blank”"
>
{bodyString}
Expand Down
8 changes: 3 additions & 5 deletions src/routes/Dashboard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,13 @@
await ethRPC?.eth.getBalance(customAddressL1),
"ether",
),
);
).toFixed(4);
// Use the taiko RPC to be reliable, a node that's not synced will display false numbers
L2Balance = Number(
L2TaikoRPC?.utils.fromWei(
L2Balance = Number(L2TaikoRPC?.utils.fromWei(
await L2TaikoRPC?.eth.getBalance(customAddressL2),
"ether",
),
);
)).toFixed(4);
}
} else {
L1Balance = null;
Expand Down

0 comments on commit 6f9e2e8

Please sign in to comment.