Skip to content

Commit

Permalink
Change tx id to internal for fedimint onchain
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyGiorgio committed May 6, 2024
1 parent 939e678 commit c6028fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/ActivityDetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ function OnchainDetails(props: {
"Pending"
)}
</KeyValue>
<Show when={props.info.txid}>
<KeyValue key={i18n.t("activity.transaction_details.txid")}>
<div class="flex gap-1">
{/* Have to do all these shenanigans because css / html is hard */}
Expand Down Expand Up @@ -450,6 +451,7 @@ function OnchainDetails(props: {
</button>
</div>
</KeyValue>
</Show>
</ul>
</VStack>
);
Expand Down
3 changes: 2 additions & 1 deletion src/routes/Receive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export type OnChainTx = {
}>;
};
txid: string;
internal_id: string;
received: number;
sent: number;
confirmation_time: {
Expand Down Expand Up @@ -201,7 +202,7 @@ export function Receive() {
const paymentTxId =
paidState() === "onchain_paid"
? paymentTx()
? paymentTx()?.txid
? paymentTx()?.internal_id
: undefined
: paymentInvoice()
? paymentInvoice()?.payment_hash
Expand Down

0 comments on commit c6028fd

Please sign in to comment.