0:00 - Intro 1:08 - Log ETH balance of test contract 2:40 - deal 4:00 - hoax 7:36 - Test wallet balance 8:32 - Summary Code github.com/t4sk/hello-foundry Book book.getfoundry.sh/ Solidity by Example solidity-by-example.org/ Take a course www.smartcontract.engineer/
@MrCoreyTexas4 ай бұрын
The very large amount of ether is coming from the WalletTest contract, not the Wallet contract. Had me confused at first. It's like in Remix how you get a bunch of accounts with 100 ether each.
@0xBnke Жыл бұрын
😍😍😍
@C0D3O Жыл бұрын
... how do I send ETH from a usual EAO account to a contract in foundry???
@smartcontractprogrammer Жыл бұрын
address(eoa).call{value: 1}("")
@fullmetalalchemist2462 Жыл бұрын
How to send erc20 to an address in foundry
@smartcontractprogrammer Жыл бұрын
deal(address of erc20, receiver, amount)
@fullmetalalchemist2462 Жыл бұрын
@@smartcontractprogrammer in vm, I was using hevm in a project. And hevm did not have any method for erc20. But thanks
@adammr8523 Жыл бұрын
Hi, where does the eth amount of wallet.t.sol come from ?
@smartcontractprogrammer Жыл бұрын
Foundry test funds the test contract
@YouForgotLigma3 ай бұрын
you can check yourself how much eth foundry adds to the test contract by: import { console } from "forge-std/console.sol"; console.log("contract balance", address(this).balance / 1e18);