Send ETH | Testing with Foundry

  Рет қаралды 5,086

Smart Contract Programmer

Smart Contract Programmer

Күн бұрын

Пікірлер: 14
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
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
@MrCoreyTexas 4 ай бұрын
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
@0xBnke Жыл бұрын
😍😍😍
@C0D3O
@C0D3O Жыл бұрын
... how do I send ETH from a usual EAO account to a contract in foundry???
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
address(eoa).call{value: 1}("")
@fullmetalalchemist2462
@fullmetalalchemist2462 Жыл бұрын
How to send erc20 to an address in foundry
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
deal(address of erc20, receiver, amount)
@fullmetalalchemist2462
@fullmetalalchemist2462 Жыл бұрын
@@smartcontractprogrammer in vm, I was using hevm in a project. And hevm did not have any method for erc20. But thanks
@adammr8523
@adammr8523 Жыл бұрын
Hi, where does the eth amount of wallet.t.sol come from ?
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
Foundry test funds the test contract
@YouForgotLigma
@YouForgotLigma 3 ай бұрын
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);
@redrum4486
@redrum4486 Жыл бұрын
function testSendEth() public {}
Signature | Testing with Foundry
5:11
Smart Contract Programmer
Рет қаралды 3,7 М.
Invariant Testing - Part 1 - Open Testing | Testing with Foundry
8:00
Smart Contract Programmer
Рет қаралды 4 М.
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 23 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Thank you Santa
00:13
Nadir Show
Рет қаралды 53 МЛН
Integrate React.js with Smart Contracts (read / write / events)
27:57
Introduction to Solidity | 100 Days of Solidity | Day 1
4:45
Web Dev Solutions
Рет қаралды 28
Building Smart Contract Test Harness with Foundry
27:45
OpenSense - Free Ethereum Security
Рет қаралды 413
Deploy Smart Contract With Foundry
9:09
Smart Contract Programmer
Рет қаралды 7 М.
Foundry: Forking Ethereum Locally
4:35
Layers DeFi
Рет қаралды 206
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 23 МЛН