Skip to content

Commit

Permalink
Merge pull request #291 from Concordium/fix-init-update-doc-examples
Browse files Browse the repository at this point in the history
Fix missing init and update transaction examples from documentation
  • Loading branch information
limemloh authored Oct 16, 2023
2 parents c8e5030 + ac33a7c commit cedff58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/composed-examples/initAndUpdateContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 --- //

Expand Down
4 changes: 2 additions & 2 deletions pages/transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit cedff58

Please sign in to comment.