From 6718cda4ec4b777ce86ed5d974cfb2721a700605 Mon Sep 17 00:00:00 2001 From: avivash Date: Wed, 15 Nov 2023 11:31:45 -0800 Subject: [PATCH] Chore: add receipt CID to image modal --- src/lib/functions.ts | 1 + src/lib/workflows/index.ts | 3 ++- src/routes/workflows/components/graph/Node.svelte | 9 ++++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/lib/functions.ts b/src/lib/functions.ts index cd9c3c1..b058fc1 100644 --- a/src/lib/functions.ts +++ b/src/lib/functions.ts @@ -29,6 +29,7 @@ export type Receipt = { prf: string[] ran: string replayed?: boolean + receiptCID?: string } export type Meta = { diff --git a/src/lib/workflows/index.ts b/src/lib/workflows/index.ts index 882b756..9881d7f 100644 --- a/src/lib/workflows/index.ts +++ b/src/lib/workflows/index.ts @@ -288,7 +288,8 @@ export const handleMessage = async (message: Message): Promise => { { ...receipt, replayed: message.metadata.replayed, - status: message.metadata.replayed ? 'from cache' : 'success' + status: message.metadata.replayed ? 'from cache' : 'success', + receiptCID: message.receipt_cid } ] diff --git a/src/routes/workflows/components/graph/Node.svelte b/src/routes/workflows/components/graph/Node.svelte index 15cbec3..cc76a5f 100644 --- a/src/routes/workflows/components/graph/Node.svelte +++ b/src/routes/workflows/components/graph/Node.svelte @@ -278,13 +278,16 @@ alt="uploaded workflow asset" /> - + {/if} {/if}