Skip to content

Commit eadf497

Browse files
committed
feat: make CreateDetailsCard similar
1 parent 70faa6a commit eadf497

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

app/components/inspector/__tests__/AssociatedTokenDetailsCard.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe('inspector::AssociatedTokenDetailsCard', () => {
7979
</ScrollAnchorProvider>
8080
);
8181
expect(screen.getByText(/Associated Token Program: Create$/)).toBeInTheDocument();
82-
[/Source/, /Account/, /Wallet/, /Mint/].forEach(pattern => {
82+
[/Account/, /Wallet/, /Mint/].forEach(pattern => {
8383
expect(screen.getByText(pattern)).toBeInTheDocument();
8484
});
8585
});

app/components/inspector/associated-token/CreateDetailsCard.tsx

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,44 +40,22 @@ export function CreateDetailsCard({
4040
<Address pubkey={ix.programId} alignRight link />
4141
</td>
4242
</tr>
43-
<tr>
44-
<td>Source</td>
45-
<td className="text-lg-end">
46-
<AddressTableLookupAddress accountIndex={raw.accountKeyIndexes[0]} message={message} hideInfo />
47-
</td>
48-
</tr>
4943
<tr>
5044
<td>Account</td>
5145
<td className="text-lg-end">
5246
<AddressTableLookupAddress accountIndex={raw.accountKeyIndexes[1]} message={message} hideInfo />
5347
</td>
5448
</tr>
55-
56-
<tr>
57-
<td>Wallet</td>
58-
<td className="text-lg-end">
59-
<AddressTableLookupAddress accountIndex={raw.accountKeyIndexes[2]} message={message} hideInfo />
60-
</td>
61-
</tr>
62-
6349
<tr>
6450
<td>Mint</td>
6551
<td className="text-lg-end">
6652
<AddressTableLookupAddress accountIndex={raw.accountKeyIndexes[3]} message={message} hideInfo />
6753
</td>
6854
</tr>
69-
70-
<tr>
71-
<td>System Program</td>
72-
<td className="text-lg-end">
73-
<AddressTableLookupAddress accountIndex={raw.accountKeyIndexes[4]} message={message} hideInfo />
74-
</td>
75-
</tr>
76-
7755
<tr>
78-
<td>Token Program</td>
56+
<td>Wallet</td>
7957
<td className="text-lg-end">
80-
<AddressTableLookupAddress accountIndex={raw.accountKeyIndexes[5]} message={message} hideInfo />
58+
<AddressTableLookupAddress accountIndex={raw.accountKeyIndexes[2]} message={message} hideInfo />
8159
</td>
8260
</tr>
8361
</InstructionCardComponent>

0 commit comments

Comments
 (0)