Skip to content

Commit

Permalink
fix: update fetch balance
Browse files Browse the repository at this point in the history
  • Loading branch information
hkey0 committed Oct 16, 2024
1 parent eb5ceee commit ae6bd67
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/components/ConnectedWallets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ const useWalletData = () => {

if (wallet.chain === "EVM") {
const balance = await getBalance(client, {
address: wallet.address as `0x${string}`,
blockTag: 'safe'
address: wallet.address as `0x${string}`
});

const balanceAsEther = formatEther(balance);
Expand Down
3 changes: 1 addition & 2 deletions app/components/Deposit/DepositContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ export const DepositContent: React.FC<DepositContentProps> = ({ modalStuff, amou
})
const balance = await getBalance(balClient, {
//@ts-ignore
address: wallet.address,
blockTag: 'safe'
address: wallet.address
})

const balanceAsEther = formatEther(balance);
Expand Down
Binary file added public/twitter-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ae6bd67

Please sign in to comment.