Foundry
Deploying Smart Contracts using Forge in Foundry
What is Foundry?β
Getting Started with Foundryβ
curl -L https://foundry.paradigm.xyz | bash foundryupcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh cargo install --git https://github.com/foundry-rs/foundry foundry-cli anvil --bins --locked
forge init foundrycd src touch MyToken.sol// SPDX-License-Identifier: MIT // compiler version must be greater than or equal to 0.8.17 and less than 0.9.0 pragma solidity ^0.8.17; contract HelloWorld { string public greet = "Hello World!"; }forge install OpenZeppelin/openzeppelin-contractsforge build
Deploying your Smart Contractβ
Last updated