Skip to content

Commit 12bbaee

Browse files
committed
Ensure new utils file is part of commit
1 parent 8f71df3 commit 12bbaee

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/hw-common/src/utils.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
22
import type { Subject } from 'rxjs'
3-
import { weiToEth } from '../utils.js'
43
import { fade } from 'svelte/transition'
54
import CloseButton from '../elements/CloseButton.svelte'
65
import AddressTable from '../elements/AddressTable.svelte'
@@ -12,6 +11,7 @@
1211
Account,
1312
AccountsList
1413
} from '../types.js'
14+
import { weiToEth } from '../utils'
1515
1616
export let selectAccountOptions: SelectAccountOptions
1717
export let accounts$: Subject<Account[]>

0 commit comments

Comments
 (0)