Skip to content

Commit

Permalink
fix: include the cause field
Browse files Browse the repository at this point in the history
  • Loading branch information
joaosa committed May 30, 2024
1 parent c03bb55 commit 343c426
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions w3-blob.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" } },
Expand Down Expand Up @@ -867,6 +869,7 @@ type GetBlobReceipt = {
}
type GetBlobOk = {
cause: Link<Task>
blob: blob
}
Expand All @@ -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.
Expand Down

0 comments on commit 343c426

Please sign in to comment.