From 343c426af10cb6481a01ee8d8c66bdd5f869d4d5 Mon Sep 17 00:00:00 2001 From: Joao Andrade Date: Thu, 30 May 2024 16:48:48 +0100 Subject: [PATCH] fix: include the cause field --- w3-blob.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/w3-blob.md b/w3-blob.md index aa6f105..6cbeff4 100644 --- a/w3-blob.md +++ b/w3-blob.md @@ -823,6 +823,8 @@ Shows an example receipt for the above `/space/content/get/blob` capability invo "ran": { "/": "bafy..get" }, "out": { "ok": { + // task that caused this invocation + "cause": { "/": "bafy..add" } "blob": { "size": 100, "content": { "/": { "bytes": "mEi...sfKg" } }, @@ -867,6 +869,7 @@ type GetBlobReceipt = { } type GetBlobOk = { + cause: Link blob: blob } @@ -877,6 +880,10 @@ type GetBlobError = { } ``` +#### Get Cause + +The `args.cause` field MUST be set to the [Link] for the task, that caused a get. + ##### Get Blob Effects Receipt MUST not have any effects.