mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 14:24:26 +01:00
Change tx id to internal for fedimint onchain
This commit is contained in:
committed by
Paul Miller
parent
3d77558d48
commit
37fc60b394
@@ -408,6 +408,7 @@ function OnchainDetails(props: {
|
|||||||
"Pending"
|
"Pending"
|
||||||
)}
|
)}
|
||||||
</KeyValue>
|
</KeyValue>
|
||||||
|
<Show when={props.info.txid}>
|
||||||
<KeyValue key={i18n.t("activity.transaction_details.txid")}>
|
<KeyValue key={i18n.t("activity.transaction_details.txid")}>
|
||||||
<div class="flex gap-1">
|
<div class="flex gap-1">
|
||||||
{/* Have to do all these shenanigans because css / html is hard */}
|
{/* Have to do all these shenanigans because css / html is hard */}
|
||||||
@@ -415,7 +416,10 @@ function OnchainDetails(props: {
|
|||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
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">
|
<div class="flex flex-nowrap items-center font-mono text-white">
|
||||||
<span class="truncate">
|
<span class="truncate">
|
||||||
@@ -450,6 +454,7 @@ function OnchainDetails(props: {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</KeyValue>
|
</KeyValue>
|
||||||
|
</Show>
|
||||||
</ul>
|
</ul>
|
||||||
</VStack>
|
</VStack>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ export type OnChainTx = {
|
|||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
txid: string;
|
txid: string;
|
||||||
|
internal_id: string;
|
||||||
received: number;
|
received: number;
|
||||||
sent: number;
|
sent: number;
|
||||||
confirmation_time: {
|
confirmation_time: {
|
||||||
@@ -213,7 +214,7 @@ export function Receive() {
|
|||||||
const paymentTxId =
|
const paymentTxId =
|
||||||
paidState() === "onchain_paid"
|
paidState() === "onchain_paid"
|
||||||
? paymentTx()
|
? paymentTx()
|
||||||
? paymentTx()?.txid
|
? paymentTx()?.internal_id
|
||||||
: undefined
|
: undefined
|
||||||
: paymentInvoice()
|
: paymentInvoice()
|
||||||
? paymentInvoice()?.payment_hash
|
? paymentInvoice()?.payment_hash
|
||||||
|
|||||||
Reference in New Issue
Block a user