From ac33a7cfca9c6ff58aca9ba1650d7890909cd107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Holm=20Gj=C3=B8rup?= Date: Mon, 16 Oct 2023 14:42:29 +0200 Subject: [PATCH] Fix missing init and update transaction examples from documentation --- examples/composed-examples/initAndUpdateContract.ts | 2 +- pages/transactions.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/composed-examples/initAndUpdateContract.ts b/examples/composed-examples/initAndUpdateContract.ts index 4d1b1a647..b2390ab82 100644 --- a/examples/composed-examples/initAndUpdateContract.ts +++ b/examples/composed-examples/initAndUpdateContract.ts @@ -181,7 +181,7 @@ const client = createConcordiumClient( ); console.dir(updateStatus, { depth: null, colors: true }); - // #region documentation-snippet-update-contract + // #endregion documentation-snippet-update-contract // --- Checking Weather --- // diff --git a/pages/transactions.md b/pages/transactions.md index 464541786..41b132041 100644 --- a/pages/transactions.md +++ b/pages/transactions.md @@ -207,7 +207,7 @@ transaction, which is used to deploy a smart contract module. The following example demonstrates how to initialize a smart contract from a module, which has already been deployed. The name of the contract `"weather"`. -{@codeblock ~~/composed-examples/initAndUpdateContract.ts #documentation-snippet-init-contract} +{@codeblock ~~:composed-examples/initAndUpdateContract.ts#documentation-snippet-init-contract} ### Update Contract @@ -222,7 +222,7 @@ and the receive function has the name `"set"` then the receiveName should be We also need to supply the contract address of the contract instance. This consists of an index and a subindex. -{@codeblock ~~/composed-examples/initAndUpdateContract.ts #documentation-snippet-update-contract} +{@codeblock ~~:composed-examples/initAndUpdateContract.ts#documentation-snippet-update-contract} ### Smart contract parameters