Skip to content

Commit 7caf527

Browse files
authored
Merge branch 'main' into feature/fet-2590-app-v3-header-zoom-is-unresponsive
2 parents 839c984 + e1359c7 commit 7caf527

File tree

5 files changed

+28
-14
lines changed

5 files changed

+28
-14
lines changed

.github/workflows/test-wallet.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Wallet Tests (Container)
22

33
on:
44
workflow_dispatch:
5-
push:
6-
paths:
7-
#all files
8-
- '**'
5+
# push:
6+
# paths:
7+
# #all files
8+
# - '**'
99

1010
env:
1111
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

src/hooks/registration/utils/useExistingCommitment.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ vi.mock('@ensdomains/ensjs/contracts', () => ({
6262
legacyEthRegistrarControllerABI: [],
6363
legacyEthRegistrarControllerInterface: {},
6464
nameWrapperErrors: [],
65+
dnsRegistrarErrors: [],
6566
nameWrapperABI: [],
6667
nameWrapperInterface: {},
6768
nameWrapperCommitSnippet: [

src/transaction-flow/input/SyncManager/SyncManager-flow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const SyncManager = ({ data: { name }, dispatch, onDismiss }: Props) => {
7373
canSyncDNS
7474
? createTransactionItem('syncManager', {
7575
name,
76-
address: account.address!,
76+
address: account.address,
7777
dnsImportData: dnsImportData.data!,
7878
})
7979
: null,

src/transaction-flow/transaction/syncManager.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Transaction, TransactionDisplayItem, TransactionFunctionParameters } fr
77

88
type Data = {
99
name: string
10-
address: Address
10+
address?: Address
1111
dnsImportData: GetDnsImportDataReturnType
1212
}
1313

@@ -24,15 +24,20 @@ const displayItems = (
2424
label: 'action',
2525
value: t('transaction.description.syncManager'),
2626
},
27-
{
28-
label: 'address',
29-
value: address,
30-
type: 'address',
31-
},
27+
...(address
28+
? [
29+
{
30+
label: 'address',
31+
value: address,
32+
type: 'address' as const,
33+
},
34+
]
35+
: []),
3236
]
3337

3438
const transaction = ({ connectorClient, data }: TransactionFunctionParameters<Data>) => {
35-
return importDnsName.makeFunctionData(connectorClient, data)
39+
const { address: _, ...dataWithoutAddress } = data
40+
return importDnsName.makeFunctionData(connectorClient, dataWithoutAddress)
3641
}
3742

3843
export default {

src/utils/errors.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ import {
88
TransactionRejectedRpcError,
99
} from 'viem'
1010

11-
import { ethRegistrarControllerErrors, nameWrapperErrors } from '@ensdomains/ensjs/contracts'
11+
import {
12+
dnsRegistrarErrors,
13+
ethRegistrarControllerErrors,
14+
nameWrapperErrors,
15+
} from '@ensdomains/ensjs/contracts'
1216

1317
type ReadableErrorType = 'insufficientFunds' | 'contract' | 'unknown'
1418
type ReadableError = {
@@ -22,7 +26,11 @@ export const getViemRevertErrorData = (err: unknown) => {
2226
return typeof error.data === 'object' ? error.data.data : error.data
2327
}
2428

25-
export const allContractErrors = [...ethRegistrarControllerErrors, ...nameWrapperErrors]
29+
export const allContractErrors = [
30+
...ethRegistrarControllerErrors,
31+
...nameWrapperErrors,
32+
...dnsRegistrarErrors,
33+
]
2634

2735
const insufficientFundsRegex =
2836
/insufficient funds for gas \* price \+ value: address (?<address>0x[a-fA-F0-9]{40}) have (?<availableBalance>\d*) want (?<requiredBalance>\d*)/

0 commit comments

Comments
 (0)