Solidity Tutorial: ERC20 token transfers (transfer, transferFrom, approve)

  Рет қаралды 49,521

EatTheBlocks

EatTheBlocks

Күн бұрын

Пікірлер: 51
@rickhoro
@rickhoro 3 жыл бұрын
All the other videos are great to this point. Sorry, but I find this one to be confusing.
@nolestock4291
@nolestock4291 4 жыл бұрын
love the videos. small critique: i would have preferred to see you deploy everything and interact with the contract's through their interface. there's still a gap in my understanding.
@1223whiteguy
@1223whiteguy 3 жыл бұрын
Your accent makes me believe in love, merci
@EatTheBlocks
@EatTheBlocks 3 жыл бұрын
haha!
@hamza-325
@hamza-325 3 жыл бұрын
Yeah, I usually get mad when I hear the strong french accent in the tutorials done by some French people and I can't focus because of it, but his accent is an exception, it is really great!
@VioletClaw816
@VioletClaw816 2 жыл бұрын
Maybe I missed something. Why can you pass the token as an argument into the TransferToken contract at line 28? Thanks.
@manishapadole4173
@manishapadole4173 Жыл бұрын
this is not working please share it with testnet deployment and transfer from function
@malkiattal4297
@malkiattal4297 3 жыл бұрын
i wish you did this amazing tutorial in french bro, still very clear and interresting, thank you !!
@EatTheBlocks
@EatTheBlocks 3 жыл бұрын
Glad you liked it!
@sandeepbhattacharya8158
@sandeepbhattacharya8158 4 жыл бұрын
What about security and sanity checks is openzappalin contracts taking care of it or we should implement our own like checking balance first null or empty address require from owner etc?
@gamersvideoclips8309
@gamersvideoclips8309 2 жыл бұрын
Y dont you show its working
@Artixou
@Artixou 5 жыл бұрын
Hey Julian, keep posting these - very useful.
@azharkhanyt
@azharkhanyt 3 жыл бұрын
Can you help me Transfer my erc20 token to on the exchanger?
@aga080
@aga080 3 жыл бұрын
Can you please make a video on the multiTransfer function?
@anyasiuche5617
@anyasiuche5617 3 жыл бұрын
Hey Julian thanks for this videos..but why cant i deploy the token.sol contract? remix keeps showing an error alert < _This contract may be abstract, not implement an abstract parent's methods completely or not invoke an inherited contract's constructor correctly_ >
@anyasiuche5617
@anyasiuche5617 3 жыл бұрын
lolz..i was able to solve it by watching your next video in the series by calling the parent constructor >> constructor() ERC20('Token', 'TOK'){} then i removed the _abstract_ keyword from token contract.
@consciousnova8337
@consciousnova8337 3 жыл бұрын
how did you declare the 'token' variable? When I try to do 'Token token = Token(_address_)' it gives me an error 'Identifier not found or not unique' I'm doing compiler ^0.8.0
@amarachiugwu_
@amarachiugwu_ 3 жыл бұрын
Nice video Julian, does this also work for BEP20 Tokens?
@EatTheBlocks
@EatTheBlocks 3 жыл бұрын
Yes, it's the same
@drabbani90
@drabbani90 3 жыл бұрын
hi julian , in my contract i have did the same thing the approve and transfer from function , but when i do the transfer from function with the price for example i want to send 100 Tokens it always give gas estimation errored when i do the value as '0' then it aproves the transaction but no erc tokens are transfered can you please tell me any solution for that
@Mrpjm200
@Mrpjm200 3 жыл бұрын
Should the line: transferToken.transferFrom(recipient, amount); have been put in a separate function, which can be called by the approved contract (e.g. not in the Owner contract)?
@yadusolparterre
@yadusolparterre 2 жыл бұрын
What is a TransferToken? Why not call it Token? Other tokens cannot be transferred? You show the ERC20 implementation but then you import a Token.sol... what is the connection between the two? And why call a contract Owner? The contract owns another contract? This is incredibly confusing. You create more questions than you answer
@anthonynolanjannotta4688
@anthonynolanjannotta4688 3 жыл бұрын
How can i interact with an ERC20 token if i don't have the solidity file? Is there another way to import it into my contract? Thanks!
@EatTheBlocks
@EatTheBlocks 3 жыл бұрын
You just need the interface
@andrianski12
@andrianski12 5 жыл бұрын
Good job, keep going
@wasifkarim1698
@wasifkarim1698 4 жыл бұрын
Can't it be deployed like that of sending ether videos ? please , tell me why I am able to deploy it ? Token.sol is not being compiled. It gives error. Someone please help!
@satadalchakravarty3911
@satadalchakravarty3911 2 жыл бұрын
who is going to show the deployment ????
@MotherCoin
@MotherCoin 3 жыл бұрын
Thank you
@Yasinaktimur
@Yasinaktimur 4 жыл бұрын
can you share your codes as gist
@EatTheBlocks
@EatTheBlocks 4 жыл бұрын
good idea, I ll think about it. In the meantime, you can register as a free member of EatTheBlocks at pro.eattheblocks.com for the source code of many tutorials
@aatkaKhan
@aatkaKhan 3 жыл бұрын
Hey Julian, great tutorial! Just want to know if there is another simple way to use these transfer functions in our smart contract.
@alexirabor
@alexirabor 3 жыл бұрын
Your videos are good, but you never run your programs. You just code and stop.
@victordanu5022
@victordanu5022 3 жыл бұрын
is it the same for bep20?
@EatTheBlocks
@EatTheBlocks 3 жыл бұрын
yes
@waleednaseem8571
@waleednaseem8571 Жыл бұрын
is anyone here to guide me ?
@alexmelka5324
@alexmelka5324 4 жыл бұрын
why only two arguments line 20 ?
@EatTheBlocks
@EatTheBlocks 4 жыл бұрын
I will check
@subujekupadupa
@subujekupadupa 3 жыл бұрын
@@EatTheBlocks have you ever checked it?
@repzo5551
@repzo5551 3 жыл бұрын
Because it's msg.sender that is passed as a parameter on line 22. If you wanted to change that, then yes, an additionnal argument would be needed
@jorgerozenberg4519
@jorgerozenberg4519 4 жыл бұрын
I don't understand which is the address of the token
@su4per2star0
@su4per2star0 4 жыл бұрын
line 16 and 29 but he's just using a random address... if you go back one video in the playlist he shows you how to write a function to set the real address kzbin.info/www/bejne/j6m4aWqlabpon9k
@alfonsopayra
@alfonsopayra 2 жыл бұрын
this video is not clear at all, sorry mate but i will push not like for this one
@Shack318
@Shack318 9 ай бұрын
This is showing a scammer how to steal or take over a token scam. Why would youtube let this guy make a video like this, someone took control of my token I found out when I sent money it went to the new address instead of me
@EatTheBlocks
@EatTheBlocks 9 ай бұрын
What you are saying does not make any sense.
@ChamaraAriyarathne
@ChamaraAriyarathne Жыл бұрын
Ok, to be honest, this video is useless, because he doesn't deploy and show what's actually happening.
Solidity Tutorial: Constructor
6:15
EatTheBlocks
Рет қаралды 10 М.
ERC20 Token Tutorial | Create Your Own Cryptocurrency
1:13:56
Block Explorer
Рет қаралды 141 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 103 МЛН
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 3,9 МЛН
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
Solidity Tutorial: Call function of other contract
11:30
EatTheBlocks
Рет қаралды 35 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 86 М.
How I Coded An Entire Website Using ChatGPT
18:22
Nick White
Рет қаралды 1,9 МЛН
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,6 МЛН
Solidity Tutorial - Variable Types
9:15
EatTheBlocks
Рет қаралды 24 М.
Winning Facebook (Meta) Hacker Cup Qual Round 2022?
53:55
Neal Wu
Рет қаралды 2,5 МЛН