Interacting with contract
retrieve: view function
retrieve is a view function in SimpleStorage.sol. view functions operate on calls, not transactions, so we do not need to define an account here.
store: mutable function
calling store requires a transaction and gas to be paid, so we need to define the account. the 3 is passed into uint favNum.
txn.wait is important for "mining".
Last updated