From 820d572f162d8e3b8125f2d4f22e1fc1096c2893 Mon Sep 17 00:00:00 2001 From: akorchyn Date: Thu, 6 Feb 2025 15:48:25 +0200 Subject: [PATCH] added message about one contract_state per crate --- near-sdk/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/near-sdk/src/lib.rs b/near-sdk/src/lib.rs index d438d0e4a..39dab8644 100644 --- a/near-sdk/src/lib.rs +++ b/near-sdk/src/lib.rs @@ -109,7 +109,8 @@ extern crate quickcheck; /// /// ## `#[near(contract_state)]` (annotates structs/enums) /// -/// The attribute prepares a struct/enum to be a contract state. This attribute is also required to make the [`#[near(contract_metadata(...))]`](near#nearcontract_metadata-annotates-structsenums) attribute work. +/// The attribute prepares a struct/enum to be a contract state. Only one contract state is allowed per crate. +/// This attribute is also required to make the [`#[near(contract_metadata(...))]`](near#nearcontract_metadata-annotates-structsenums) attribute work. /// **The attribute specific to the [near] macro only.** /// /// ### Basic example