Skip to content

Commit

Permalink
Clarify @nearBindgen inheritance limits (#983)
Browse files Browse the repository at this point in the history
* Clarify @nearBindgen inheritance limits


Co-authored-by: Damián Parrino <[email protected]>
  • Loading branch information
tituszban and bucanero authored Feb 2, 2022
1 parent ddf8cb4 commit ee6856e
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit ee6856e

Please sign in to comment.