Skip to content

Commit

Permalink
added message about one contract_state per crate
Browse files Browse the repository at this point in the history
  • Loading branch information
akorchyn committed Feb 6, 2025
1 parent 4072acc commit 820d572
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion near-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 820d572

Please sign in to comment.