Current Intelligent Contract State
Current Intelligent Contract State is the deployed contract data shown through read methods in GenLayer Studio, used to verify that initialization succeeded. Once your Intelligent Contract is deployed, you can check its current state to confirm that the contract's data and variables are set as expected.
Viewing the Current Intelligent Contract State
After deploying your contract, you will now see:
- Contract Address: This is used for interacting with your contract.
- Read Methods: These return information on the current state of the contract.
For example, in the Storage contract:
- If the constructor parameter
initial_storagewas set tohello, the state methodget_storagewill returnhello.
The result will show the current state based on the getter function called. This allows you to verify that the variables in your contract have been initialized correctly and that they change when transactions are executed.
When the contract state changes, you can always come back and refresh the state by calling these getter functions to see the most current state of your Intelligent Contract.
With the state verified, you can now execute transactions and interact with your deployed contract.