diff options
Diffstat (limited to 'src/routes/(app)/ark')
| -rw-r--r-- | src/routes/(app)/ark/+page.svelte | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/routes/(app)/ark/+page.svelte b/src/routes/(app)/ark/+page.svelte index 81ef9354..09d4d9a3 100644 --- a/src/routes/(app)/ark/+page.svelte +++ b/src/routes/(app)/ark/+page.svelte @@ -1,11 +1,7 @@ <script> - import { SingleKey, Wallet } from "@arkade-os/sdk"; import { onMount, tick } from "svelte"; import { HDKey } from "@scure/bip32"; - - const identity = SingleKey.fromHex( - "ce66c68f8875c0c98a502c666303dc183a21600130013c06f9d1edf60207abf2", - ); + import { wallet } from "$lib/ark"; let loading = $state(); let balance = $state(); @@ -18,12 +14,7 @@ e?.preventDefault(); loading = true; - const wallet = await Wallet.create({ - identity, - arkServerUrl: "https://arkade.computer", - }); - - balance = await wallet.getBalance(); + balance = await wallet().getBalance(); loading = false; }; |
