This assignment is split into two parts. In the first part, you are expected to familiarize yourself with Remix and MetaMask. In the second part, we will dabble with various programming concepts and write your first lines of code.

As with all assignments, don’t hesitate to Google, but do not copy verbatim or directly from your peers. Make sure your answers are concise, a lot of questions don’t require more than two sentences to get full credit.

Submission guidelines: PDF or Markdown (*.md) are both accepted. If you choose to work with Markdown, make sure it’s your README file so it shows by default.

GitHub Classroom invite for HW2: https://classroom.github.com/a/8WpajbA8

Deadline: Sep. 22, 2022 16:00 PST


1) Remix & MetaMask

Remix

  1. Deploy our in-class Calculator contract using a different compiler version. Tell us how you did it and include a screenshot.
  2. Deploy our in-class Calculator contract from a different account. Tell us how you did it and include a screenshot.
  3. Show the result of an arithmetic operation without calling getMem(). Tell us how you did it and include a screenshot.

MetaMask

  1. Tell us your wallet address.
  2. Acquire some test Ether on Goerli (GoerliETH) through this faucet: https://faucets.chain.link/
  3. Send 0.05 GoerliETH to 0x7183a02EBb534a7B183741Bab09F4ec932DCe27B and attach a link to your transaction on Goerli Etherscan.
  4. Add a second account in MetaMask and tell us its address.
  5. Send any amount of GoerliETH from your first account to your second account and attach a link to the transaction on Goerli Etherscan.

2) Solidity & General Programming

It is not necessary for the answers you provide to compile, but you should strive for correctness as this aspect will be graded in the next assignment. You are allowed to use Remix to assist you in answering these questions.

Some questions have multiple acceptable answers. You only need to provide one.