Deploy Smart Contract With Foundry

  Рет қаралды 7,361

Smart Contract Programmer

Smart Contract Programmer

Күн бұрын

Пікірлер
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
0:00 - Environment variables 0:45 - Script 1:46 - ERC20 contract to deploy 3:14 - Function run 3:50 - Get private key from env 4:57 - Load environment variables and run script 5:48 - Code to deploy contract 6:52 - Simulate deployment transaction 7:38 - Execute deployment transaction 8:16 - Verify contract on Etherscan Code github.com/t4sk/hello-foundry Book book.getfoundry.sh/ Take a course www.smartcontract.engineer/
@ChristianReyess
@ChristianReyess Жыл бұрын
When I run my scrpt it gives me an error "No broadcast in progress to stop" when I comment out the vm.stopBroadcast() ti works... why is that?
@vydesolaris
@vydesolaris Жыл бұрын
if you are using methods with start prefix (vm.startPrank, vm.startBroadcast, etc), then you have to write their 'friends' aka methods with stop prefix (vm.stopPrank, vm.stopBroadcast, etc)
@sayandcode
@sayandcode Жыл бұрын
Did we not have to manually pass in the etherscan API key to the CLI command? What about using the other foundry commands like chisel and anvil for deploying?
@priyanshupanda6699
@priyanshupanda6699 Жыл бұрын
How to choose network while deploying like hardhat ? Also how to custom set constructor arguments using network provided
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
change it in your .env file
@sayandcode
@sayandcode Жыл бұрын
I heard theres a better way to handle env like pvt keys in foundry now?
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
yeah there definitely is a better way, but I've never bothered
@vydesolaris
@vydesolaris Жыл бұрын
How can I verify contracts on other network like Arbitrum or Polygon?
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
Use the block explorer for the chain
@neerosity
@neerosity Жыл бұрын
using .env file is very bad idea in foundry... can you make a video how to use --keystore to store private key and then use that in script file set address as admin and also cli to call deploy script instead of using env variable.
@vydesolaris
@vydesolaris Жыл бұрын
this will be a good idea!
@SynapseNervosa
@SynapseNervosa 11 ай бұрын
He has the vid he made recently where he sets up a keystore in cast wallet. Follow that tutorial to set up your wallet in cast, then instead of using the arg --private-key when deploying the script in the cli, you would use the arg --account to use your foundry keystore to deploy the contract.
@neerosity
@neerosity 11 ай бұрын
@@SynapseNervosa thank you but I figured it out earlier, it's almost 5 months when I asked this🙂
Deploy an NFT collection in 5 Min (advanced)
38:25
HashLips Academy
Рет қаралды 46 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Verifying Contracts in Remix with Etherscan
5:20
Ethereum Remix
Рет қаралды 8 М.
Remappings | Testing with Foundry
7:40
Smart Contract Programmer
Рет қаралды 8 М.
Intro to Foundry | The FASTEST Smart Contract Framework
19:21
Patrick Collins
Рет қаралды 42 М.
Mantle 🛠️ Debugging your smart contract with Foundry
13:24
How to Verify Ethereum Smart Contracts
16:02
Moralis for Developers
Рет қаралды 20 М.
A Complete Introduction to Smart Contract Development With Foundry
34:05
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН