Skip to content

Commit

Permalink
fix a typo and use the JettonWallet over SampleTactContract
Browse files Browse the repository at this point in the history
  • Loading branch information
novusnota committed Jan 20, 2025
1 parent fbd2874 commit 0df09fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified docs/src/assets/contract-dependency-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/src/content/docs/book/compile.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ For example:

![Trait inheritance diagram](/src/assets/trait-inheritance-diagram.png)

There, `SampleTactContract` inherits the [`Deployable{:tact}`](/ref/stdlib-deploy#deployable) trait, and both inherit the [`BaseTrait{:tact}`](/ref/core-base).
There, [`JettonWallet`](https://github.com/tact-lang/jetton/blob/ef802f95c967f2fd37e80893845c3c3ed7c34c78/sources/jetton_wallet.tact) inherits the `WalletExitcodes` and `GasConstant` traits, and all inherit the [`BaseTrait{:tact}`](/ref/core-base).

#### Contract dependency diagram {#contract-diagram}

Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/book/contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Each contract can contain:
* [Receiver functions](#receiver-functions)
* [Internal functions](#internal-functions)

### Inherited traits, `with{:tact}` {#traits}
### Inherited traits, `with` {#traits}

Contracts can inherit all the declarations and definitions from [traits][trait] and override some of their default behaviours. In addition to that, every contract and trait implicitly inherits the special [`BaseTrait{:tact}` trait](/ref/core-base).

Expand Down

0 comments on commit 0df09fc

Please sign in to comment.