Skip to content

Instantly share code, notes, and snippets.

View jw122's full-sized avatar
:octocat:
Building

Julia Wu jw122

:octocat:
Building
View GitHub Profile
@jw122
jw122 / EtherWallet.sol
Created June 16, 2022 06:32
Simple smart contract wallet
// 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;