Change tx id to internal for fedimint onchain

This commit is contained in:
Tony Giorgio
2024-05-06 14:43:16 -05:00
committed by Paul Miller
parent 3d77558d48
commit 37fc60b394
2 changed files with 47 additions and 41 deletions

View File

@@ -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 */}
@@ -415,7 +416,10 @@ function OnchainDetails(props: {
<a
target="_blank"
rel="noopener noreferrer"
href={mempoolTxUrl(props.info.txid, network)}
href={mempoolTxUrl(
props.info.txid,
network
)}
>
<div class="flex flex-nowrap items-center font-mono text-white">
<span class="truncate">
@@ -450,6 +454,7 @@ function OnchainDetails(props: {
</button>
</div>
</KeyValue>
</Show>
</ul>
</VStack>
);

View File

@@ -60,6 +60,7 @@ export type OnChainTx = {
}>;
};
txid: string;
internal_id: string;
received: number;
sent: number;
confirmation_time: {
@@ -213,7 +214,7 @@ export function Receive() {
const paymentTxId =
paidState() === "onchain_paid"
? paymentTx()
? paymentTx()?.txid
? paymentTx()?.internal_id
: undefined
: paymentInvoice()
? paymentInvoice()?.payment_hash