We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f71df3 commit 12bbaeeCopy full SHA for 12bbaee
packages/hw-common/src/utils.ts
@@ -0,0 +1,5 @@
1
+import Bignumber from 'bignumber.js'
2
+
3
+export function weiToEth(wei: string): string {
4
+ return new Bignumber(wei).div(1e18).toString(10)
5
+}
packages/hw-common/src/views/AccountSelect.svelte
@@ -1,6 +1,5 @@
<script lang="ts">
import type { Subject } from 'rxjs'
- import { weiToEth } from '../utils.js'
import { fade } from 'svelte/transition'
import CloseButton from '../elements/CloseButton.svelte'
6
import AddressTable from '../elements/AddressTable.svelte'
@@ -12,6 +11,7 @@
12
11
Account,
13
AccountsList
14
} from '../types.js'
+ import { weiToEth } from '../utils'
15
16
export let selectAccountOptions: SelectAccountOptions
17
export let accounts$: Subject<Account[]>
0 commit comments