Skip to content

Commit da43303

Browse files
fix extraneous typing in accountdelete
1 parent 1a9bbe8 commit da43303

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

src/containers/shared/components/Transaction/AccountDelete/Simple.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@ import { TransactionSimpleProps } from '../types'
66
import { Account } from '../../Account'
77
import { CredentialIDs } from '../CredentialIDs'
88

9-
// Extend the AccountDelete type to include CredentialIDs
10-
interface AccountDeleteWithCredentials extends AccountDelete {
11-
CredentialIDs?: string[]
12-
}
13-
14-
export const Simple = ({
15-
data,
16-
}: TransactionSimpleProps<AccountDeleteWithCredentials>) => {
9+
export const Simple = ({ data }: TransactionSimpleProps<AccountDelete>) => {
1710
const { t } = useTranslation()
1811
const tx = data.instructions
1912

src/containers/shared/components/Transaction/AccountDelete/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,9 @@ import {
77

88
import { Simple } from './Simple'
99

10-
// Extend the AccountDelete type to include CredentialIDs
11-
interface AccountDeleteWithCredentials extends AccountDelete {
12-
CredentialIDs?: string[]
13-
}
14-
1510
export const AccountDeleteTransaction: TransactionMapping = {
1611
Simple,
1712
action: TransactionAction.CANCEL,
1813
category: TransactionCategory.ACCOUNT,
19-
parser: (tx: AccountDeleteWithCredentials): AccountDeleteWithCredentials =>
20-
tx,
14+
parser: (tx: AccountDelete): AccountDelete => tx,
2115
}

0 commit comments

Comments
 (0)