DEV Community

Amy's Vue on this
Amy's Vue on this

Posted on

Web3 Solidity + JavaScript 32 hour course recap #8

timestamps: 2:44:10-3:00:00

This is the recap of my sixth day of making my way through the 32 hour course by Patrick Collins posted on FreeCodeCamp.

Today we celebrate the milestone of completing 3 hours of the course! We're almost 10% of the way through!

We went over how to define an object, and how to call it from an external source.

We also went over how to connect (remix)[https://remix.ethereum.org/] to our Metamask test wallet.

There are six places where memory can be stored in a SmartContract: stack, memory, storage, calldata, code, and logs. However, memory and calldata are the only places where the storage can be specified. Calldata and memory are both temporary pieces of data. However calldata is like declaring a const, while memory is like declaring a let. By that I mean that calldata is read only and the information cannot be changed within the SmartContract, but memory can be reassigned a value within the SmartContract.

One thing that I found out was that the metamask extension doesn't like for you to switch accounts, and if you have 0 eth in your wallet the 2+ accounts won't reconnect automatically. But you can manually add them back, and they will have the original amount that existed before. This happened in a dev account, but I still did not like the fact that all of my accounts didn't appear right away.

Top comments (0)