This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.7.0 <0.9.0; | |
// From Block Explorer's tutorial video: https://www.youtube.com/watch?v=UoGzV094jhE | |
// A smart contract acts like a wallet that can receive funds | |
contract EtherWallet { | |
// a state variable for the owner. Only the owner will be able to withdraw funds from the wallet | |
address payable public owner; |