some basic cleanup

This commit is contained in:
Samuel Andert
2023-07-22 16:34:57 +02:00
parent 5ddfc36acb
commit 5b7f46a414
6 changed files with 10 additions and 26 deletions

View File

@ -0,0 +1,15 @@
<script>
import { fetchBalance } from '@wagmi/core';
import { onMount } from 'svelte';
export let balance;
onMount(async () => {
const getBalance = await fetchBalance({
address: '0x06B6BE47c86cfcDF3f77c0e17e7aD8af750782aE'
});
balance = getBalance.formatted;
});
</script>
<span>{balance}</span>