Build Basic Smart Contract
Learn about Solidity
Let's create and interact with the basic smart contract. Create a new solidity file called NumberStorage.sol and fill it with the contract below:
Now let's deploy it:
The result should look something like this:
Next, let's store a number:
Since we are now writing to and not just reading from the blockchain we will see the transaction details:
Next, let's get the number from the storage:
As a result we should get the number we have stored earlier: