From da9a1797561c39f1883208beb4cf5c42d0dfa844 Mon Sep 17 00:00:00 2001 From: Franz Heinzmann Date: Mon, 17 Apr 2023 15:07:59 +0200 Subject: [PATCH] Fix example in README.md Copy-pasted some example code in the UCAN workshop. This fix made it work: the invocations are each individual arguments, not an array. Wondering though if the array form would be more intuitive when batching multiple invocations - in the old docs it would be `connection.execute(invocations)`, in the working code it's `connection.execute(...invocations)`. --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 0e19d647..67ed269c 100644 --- a/Readme.md +++ b/Readme.md @@ -164,7 +164,7 @@ const demo1 = async connection => { }, }) - const result = await connection.execute([me]) + const result = await connection.execute(me) if (result.error) { console.error('oops', result) } else {