From ee6856ea78d72f02f15032482ed02ce7baf93f98 Mon Sep 17 00:00:00 2001 From: Titusz Ban Date: Wed, 2 Feb 2022 15:21:04 +0000 Subject: [PATCH] Clarify @nearBindgen inheritance limits (#983) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Clarify @nearBindgen inheritance limits Co-authored-by: Damián Parrino --- docs/develop/contracts/as/intro.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/develop/contracts/as/intro.md b/docs/develop/contracts/as/intro.md index 66c55ec56ff..c1405f747d6 100644 --- a/docs/develop/contracts/as/intro.md +++ b/docs/develop/contracts/as/intro.md @@ -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}