Skip to content

Commit

Permalink
Add template annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed May 6, 2024
1 parent f55e52d commit 0c3a14a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/core/entrypoints/execute.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This allows you to, for example, increment a counter or add a user to a lottery.

## Definition

```rust filename="contract.rs"
```rust filename="contract.rs" template="core"
#[entry_point]
pub fn execute(
deps: DepsMut,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/core/entrypoints/instantiate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ You can imagine it as the constructor of your contract.

The most basic definition of this endpoint looks like this:

```rust filename="contract.rs"
```rust filename="contract.rs" template="core"
#[entry_point]
pub fn instantiate(
_deps: DepsMut,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/core/entrypoints/query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This means you can only _read_ from the storage but not _write_ to it.

## Definition

```rust filename="contract.rs"
```rust filename="contract.rs" template="core"
#[entry_point]
pub fn query(
_deps: Deps,
Expand Down

0 comments on commit 0c3a14a

Please sign in to comment.