SimpleStorage.sol
).SimpleStorage.sol
contract.
Once you are there:
artifacts/build-info/hex_value
file. This contains the content we need to move to the SimpleStorage_metadata.json
file.
content
line as shown in the screenshot above.SimpleStorage_metadata.json
file.
SimpleStorage_metadata.json
file.sources
object where the data for contract SimpleStorage.sol
is stored.license
field.
Contract
tab.
Contract Address
field matched your Smart Contract to verify.Compiler Type
.Include Nightly Builds
.Compiler Version
that was used when you compiled your smart contract.Verify & Publish
button.
SimpleStorage
v0.8.26+commit.8a97fa7a
cancun
false
0.8.26
, with the Ethereum Virtual Machine (EVM) set to cancun
, and without optimization enabled.
get
:
uint256
value.view
(read-only).set
:
uint256
value (_data
).nonpayable
(modifies the state).set(uint256 _data)
: Stores a value.get()
: Retrieves the stored value.set
: Allows the user to save a uint256
value in the contract’s state.get
: Returns the saved value without modifying the state.