Skip to content

Commit

Permalink
Merge pull request #1041 from Concordium/remove-stateClone
Browse files Browse the repository at this point in the history
Remove StateClone
  • Loading branch information
DOBEN authored Jul 15, 2024
2 parents 6992bd8 + bcc309d commit 5c80822
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Start with the **state.rs** file. As you already know from the previous tutorial
///
/// Note: The specification does not specify how to structure the contract state
/// and this could be structured in a more space-efficient way.
#[derive(Serial, DeserialWithState, StateClone)]
#[derive(Serial, DeserialWithState)]
#[concordium(state_parameter = "S")]
pub struct State<S> {
/// The state of addresses.
Expand Down
2 changes: 1 addition & 1 deletion source/academy/tutorials/nft-minting-w-id/minting-sc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Create a **lib.rs** file and copy\paste the code from the example contract. Star
///
/// Note: The specification does not specify how to structure the contract state
/// and this could be structured in a more space efficient way.
#[derive(Serial, DeserialWithState, StateClone)]
#[derive(Serial, DeserialWithState)]
#[concordium(state_parameter = "S")]
struct State<S> {
/// The state of addresses.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Now, you need to update the ``state`` struct which keeps the current state of yo
///
/// Note: The specification does not specify how to structure the contract state
/// and this could be structured in a more space efficient way.
#[derive(Serial, DeserialWithState, StateClone)]
#[derive(Serial, DeserialWithState)]
#[concordium(state_parameter = "S")]
struct State<S = StateApi> {
/// The state of addresses.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Always remember, à blockchain itself is a state-keeping machine. If you send a
///
/// Note: The specification does not specify how to structure the contract state
/// and this could be structured in a more space efficient way.
#[derive(Serial, DeserialWithState, StateClone)]
#[derive(Serial, DeserialWithState)]
#[concordium(state_parameter = "S")]
struct State<S = StateApi> {
/// The state of addresses.
Expand Down

0 comments on commit 5c80822

Please sign in to comment.