Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify @nearBindgen inheritance limits #983

Merged
merged 2 commits into from
Feb 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/develop/contracts/as/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ export class TextMessage {
// see https://github.com/near/near-sdk-as/blob/master/assembly/__tests__/runtime/model.ts
```

`@nearBindgen` is a decorator made for the serialization of custom classes before they are saved to storage onto the blockchain
`@nearBindgen` is a decorator made for the serialization of custom classes before they are saved to storage onto the blockchain.

:::note
Please note that `@nearBindgen` does not support class inheritance.
:::

#### Models are composable {#models-are-composable}

Expand Down