Skip to content

Commit 76f4396

Browse files
authored
fix: shielded transfer receipt not showing details (#2045)
1 parent 8747c25 commit 76f4396

File tree

9 files changed

+13
-468
lines changed

9 files changed

+13
-468
lines changed

apps/namadillo/src/App/Common/Timeline.tsx

Lines changed: 0 additions & 231 deletions
This file was deleted.

apps/namadillo/src/App/Common/TransactionReceipt.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ import { wallets } from "integrations";
1717
import { useMemo } from "react";
1818
import { FaCheckCircle } from "react-icons/fa";
1919
import { GoHourglass, GoXCircle } from "react-icons/go";
20-
import {
21-
allTransferTypes,
22-
PartialTransferTransactionData,
23-
TransferStep,
24-
} from "types";
20+
import { PartialTransferTransactionData, TransferStep } from "types";
2521

2622
type TransactionReceiptProps = {
2723
transaction: PartialTransferTransactionData;
@@ -137,10 +133,6 @@ const TransferTransactionReceipt = ({
137133
export const TransactionReceipt = ({
138134
transaction,
139135
}: TransactionReceiptProps): JSX.Element => {
140-
const isTransferTransaction = (): boolean => {
141-
return allTransferTypes.includes(transaction.type);
142-
};
143-
144136
return (
145137
<div>
146138
<header className="mb-8">
@@ -181,9 +173,7 @@ export const TransactionReceipt = ({
181173
)}
182174
</header>
183175
<article>
184-
{isTransferTransaction() ?
185-
<TransferTransactionReceipt transaction={transaction} />
186-
: <div></div>}
176+
<TransferTransactionReceipt transaction={transaction} />
187177
</article>
188178
</div>
189179
);

apps/namadillo/src/App/Ibc/IbcWithdraw.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export const IbcWithdraw = (): JSX.Element => {
264264
hash: tx.encodedTxData.txs[0].innerTxHashes[0].toLowerCase(),
265265
currentStep: TransferStep.WaitingConfirmation,
266266
rpc: "",
267-
type: "TransparentToIbc",
267+
type: shielded ? "ShieldedToIbc" : "TransparentToIbc",
268268
status: "pending",
269269
sourcePort: "transfer",
270270
asset,

apps/namadillo/src/App/Transactions/TransferTimelineErrorEntry.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)