Skip to content

Commit 80276b4

Browse files
committed
fix: fmt
1 parent 719507c commit 80276b4

File tree

8 files changed

+126
-23
lines changed

8 files changed

+126
-23
lines changed

apps/explorer/src/comps/ConnectWallet.tsx

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useMutation } from '@tanstack/react-query'
22
import { ClientOnly } from '@tanstack/react-router'
3+
import type { Address as OxAddress } from 'ox'
34
import * as React from 'react'
45
import { Actions, Hooks } from 'tempo.ts/wagmi'
56
import {
@@ -15,7 +16,6 @@ import {
1516
import { Address } from '#comps/Address'
1617
import { cx } from '#cva.config'
1718
import { ellipsis } from '#lib/chars'
18-
import { Address as OxAddress } from 'ox'
1919
import { filterSupportedInjectedConnectors } from '#lib/wallets'
2020
import LucideDownload from '~icons/lucide/download'
2121
import LucideLogOut from '~icons/lucide/log-out'
@@ -82,25 +82,31 @@ export namespace ConnectWallet {
8282
)
8383

8484
if (connect.status === 'pending')
85-
return <span className="text-[12px] text-secondary">Connecting{ellipsis}</span>
85+
return (
86+
<span className="text-[12px] text-secondary">Connecting{ellipsis}</span>
87+
)
8688

8789
if (connection.isConnected && connection.address) {
8890
const showFundButton =
8991
!hasFunds && (fund.status === 'idle' || fund.status === 'pending')
9092
return (
9193
<div className="flex items-center gap-2">
9294
{showFundButton &&
93-
(fund.isPending ? <span className="text-[12px] text-secondary">Funding{ellipsis}</span> : (
94-
<button
95-
type="button"
96-
className="text-[12px] inline-flex items-center gap-1 text-positive hover:underline cursor-pointer press-down"
97-
// biome-ignore lint/style/noNonNullAssertion: is ok
98-
onClick={() => fund.mutate(connection.address!)}
99-
>
100-
Fund
101-
<LucideDownload className="size-[12px]" />
102-
</button>
103-
))}
95+
(fund.isPending ? (
96+
<span className="text-[12px] text-secondary">
97+
Funding{ellipsis}
98+
</span>
99+
) : (
100+
<button
101+
type="button"
102+
className="text-[12px] inline-flex items-center gap-1 text-positive hover:underline cursor-pointer press-down"
103+
// biome-ignore lint/style/noNonNullAssertion: is ok
104+
onClick={() => fund.mutate(connection.address!)}
105+
>
106+
Fund
107+
<LucideDownload className="size-[12px]" />
108+
</button>
109+
))}
104110
<Address
105111
chars={6}
106112
align="end"

apps/explorer/src/lib/og-params.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ export function buildAddressOgUrl(
162162
}
163163
if (params.accountType) {
164164
search.set('accountType', params.accountType)
165-
if (params.accountType === 'contract' && params.methods && params.methods.length > 0) {
165+
if (
166+
params.accountType === 'contract' &&
167+
params.methods &&
168+
params.methods.length > 0
169+
) {
166170
search.set(
167171
'methods',
168172
params.methods

apps/explorer/src/lib/og.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,10 @@ export async function buildAddressOgData(address: string): Promise<{
984984
}
985985
if (addressData.accountType) {
986986
params.set('accountType', addressData.accountType)
987-
if (addressData.accountType === 'contract' && addressData.methods.length > 0) {
987+
if (
988+
addressData.accountType === 'contract' &&
989+
addressData.methods.length > 0
990+
) {
988991
const truncatedMethods = addressData.methods.map((m) =>
989992
truncateOgText(m, 14),
990993
)

apps/explorer/src/lib/queries/trace.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { queryOptions } from '@tanstack/react-query'
22
import type { Address, Hex } from 'ox'
3-
import { getConfig } from '#wagmi.config'
3+
import { config } from '#wagmi.config'
44

55
export interface CallTrace {
66
type: 'CALL' | 'DELEGATECALL' | 'STATICCALL' | 'CREATE' | 'CREATE2'
@@ -34,7 +34,7 @@ export interface TraceData {
3434
}
3535

3636
export async function fetchTraceData(hash: Hex.Hex): Promise<TraceData> {
37-
const client = getConfig().getClient()
37+
const client = config.getClient()
3838
const [trace, prestate] = await Promise.all([
3939
(
4040
client.request({

apps/explorer/src/routes/__root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function useDevTools() {
224224
React.useEffect(() => {
225225
if (
226226
import.meta.env.MODE === 'development' &&
227-
import.meta.env.VITE_ENABLE_DEVTOOLS !== 'false'
227+
import.meta.env.VITE_ENABLE_DEVTOOLS === 'true'
228228
) {
229229
void import('eruda').then(({ default: eruda }) => eruda.init())
230230
}

apps/explorer/src/routes/_layout/address/$address.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import {
4545
useTransactionDataFromBatch,
4646
} from '#comps/TxTransactionRow'
4747
import { cx } from '#cva.config'
48+
import { type AccountType, getAccountType } from '#lib/account'
4849
import {
4950
type ContractSource,
5051
contractSourceQueryOptions,
@@ -58,7 +59,6 @@ import {
5859
getContractInfo,
5960
} from '#lib/domain/contracts'
6061
import { parseKnownEvents } from '#lib/domain/known-events'
61-
import { type AccountType, getAccountType } from '#lib/account'
6262
import * as Tip20 from '#lib/domain/tip20'
6363
import { DateFormatter, HexFormatter, PriceFormatter } from '#lib/formatting'
6464
import { useIsMounted, useMediaQuery } from '#lib/hooks'

apps/explorer/src/routes/_layout/tx/$hash.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ import { cx } from '#cva.config.ts'
3131
import { autoloadAbiQueryOptions, lookupSignatureQueryOptions } from '#lib/abi'
3232
import { apostrophe } from '#lib/chars'
3333
import type { KnownEvent } from '#lib/domain/known-events'
34+
import type { FeeBreakdownItem } from '#lib/domain/receipt'
3435
import { isTip20Address } from '#lib/domain/tip20'
3536
import { PriceFormatter } from '#lib/formatting'
36-
import type { FeeBreakdownItem } from '#lib/domain/receipt'
3737
import { useCopy, useMediaQuery } from '#lib/hooks'
3838
import { buildOgImageUrl, buildTxDescription } from '#lib/og'
3939
import { LIMIT, type TxData, txQueryOptions } from '#lib/queries'

pnpm-lock.yaml

Lines changed: 93 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)