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/
@MrCoreyTexas
2 ай бұрын
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
11 ай бұрын
😍😍😍
@C0D3O
10 ай бұрын
... how do I send ETH from a usual EAO account to a contract in foundry???
@smartcontractprogrammer
10 ай бұрын
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
@redrum4486
Жыл бұрын
function testSendEth() public {}
@adammr8523
Жыл бұрын
Hi, where does the eth amount of wallet.t.sol come from ?
@smartcontractprogrammer
Жыл бұрын
Foundry test funds the test contract
@YouForgotLigma
Ай бұрын
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);
Пікірлер: 14