I am using state machines to create a smart contract. How can I create a variable that will be defined by the user when it runs the first step of the state machine and that then can't be modified anymore?
In other words, it's a variable that is created by using the smart contract endpoints but that can't be modified later on until the state machine reaches its end.
Finally, would it be possible to make this validation on-chain?