Skip to content

Commit

Permalink
chore: import Badge
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Oct 7, 2024
1 parent d9b2ba0 commit 91768ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/content/docs/book/functions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ title: Functions
description: "Global, asm, native functions, as well as receivers, getters and storage functions, plus the many attributes that allow for great flexibility and expressivity of Tact language"
---

import { Badge } from '@astrojs/starlight/components';

Functions in Tact could be defined in different ways:

* Global static function
Expand Down Expand Up @@ -140,7 +142,7 @@ contract Treasure {

### Explicit resolution of method ID collisions

<Badge text="Available since Tact 1.6" variant="tip" size="large"/>
<Badge text="Available since Tact 1.6" variant="tip" size="medium"/><p/>

As other functions in TVM contracts, getters have their *unique* associated function selectors which are some integers ids (called *method IDs*).
Some of those integers are reserved for internal purposes, e.g. -4, -3, -2, -1, 0 are reserved IDs and
Expand Down

0 comments on commit 91768ef

Please sign in to comment.