Interacting with the Contract
Do the following in the Remix IDE:
-
Go to the Deployed Contracts section of the Remix Side Panel.
-
In the section corresponding to SimpleStorage, you should see two buttons labeled set and get.
-
Click the get button. It should return the value 0. The string uint256: 0 will appear below the get button.
-
Enter an integer value (say 32) into the input box next to the set button and click it.
-
A Metamask window will popup asking you to confirm the set transaction. Click the Confirm button.
-
You will see a notification in the Remix terminal that the transaction is pending. After a few seconds, there will be another notification in the Remix terminal that the transaction was included in a block.
-
Click the get button. It should return the value 32. The string uint256: 32 will appear below the get button.