Interact
Interact with public contracts
pragma solidity ^0.7.0;
contract SimpleStorage {
uint public storedData;
constructor(uint initVal) public {
storedData = initVal;
}
function set(uint x) public {
storedData = x;
}
function get() view public returns (uint retVal) {
return storedData;
}
}1. Perform a read operation
2. Perform a write operation
3. Verify an updated value
Last updated
Was this helpful?

