Compiling and Deploying Contracts
Learn to compile your Solidity code into bytecode and deploy contracts to a local development network.
Intro to Compile & Deploy
Great job setting up your environment! Now let's bring your Solidity code to life. This lesson covers two essential steps: compiling and deploying your smart contracts.
Think of it like building an app: first, you write the code, then you turn it into something a computer can run (compile), and finally, you put it somewhere for people to use (deploy).
What is Compilation?
Compilation is the process of converting your human-readable Solidity code into machine-readable bytecode. The Ethereum Virtual Machine (EVM) understands this bytecode.
- Solidity is a high-level language.
- The EVM runs low-level bytecode.
- The compiler acts as a translator between them.
All lessons in this course
- Setting Up Hardhat or Truffle
- Compiling and Deploying Contracts
- Interacting with Deployed Contracts
- Writing and Running Contract Tests