0:00 - Intro 0:26 - ERC20 permit 3:07 - Test script 4:13 - Write ERC20 token contract 5:44 - Back to writing test 7:05 - What message to sign for permit? 9:04 - Finish up the test script 9:48 - Execute test Take a course www.smartcontract.engineer/
@mohamadhammoud43262 жыл бұрын
I'm so grateful for this channel. Please may you have a video regarding meta transactions?
@meka4996 Жыл бұрын
Amazing man! Thanks
@cypherarts12912 жыл бұрын
@Smart Contract Programmer where do I define the contract owner pays for the transfers?
@adamstraus66772 жыл бұрын
You're a homie
@leonardman5935 Жыл бұрын
so who is the new owner of the token, the contract owner of vault or it is only staying in this contract vault?
@cypherarts12912 жыл бұрын
one word: wow!
@jjmorosr Жыл бұрын
sos un capo!!!
@reoyamanaka7566 Жыл бұрын
Amazing video. Could you please make a frontend tutorial that integrates this? Thanks so much
@veliea51602 жыл бұрын
Why Uniswap ERC721Permit.sol permit function is calling `_approve` at the end. you say we avoid calling approve if we use permit
@hackerhubnft76752 жыл бұрын
Some contracts have a bool parameter allowed. Why is that ?
@mangola-x8u2 жыл бұрын
How is it offline transaction? How does OpenSea payment system work for bidding? In above example it looked we have clubbed transferFrom and approve together is some way? Am i understanding it right?
@smartcontractprogrammer2 жыл бұрын
How is it offline transaction? Permit replaces approve. Approve must be called by owner of token (msg.sender) Permit can be called by anyone if they have the signature from the owner n above example it looked we have clubbed transferFrom and approve together is some way? Am i understanding it right? Correct. It can also be modified to be called by anyone. permit(owner, spender, amount, signature) transferFrom(owner, spender, amount)
@DeadBabyFoetus2 жыл бұрын
Awesome! Video suggestion: Which contract is msg.sender when performing calls/ delegate call :)
@afeem76052 жыл бұрын
hey man, could you share resource for learning hyperledger fabric if you have any? would really appreciate it:)
@CoderGaming2 жыл бұрын
Hi.! Thank you for this quality educational videos. I learned a lot from your videos. I just wanted to request you to make video about Gas Station Network (GSN). Thank once again 👍
@eduardobenitez63762 жыл бұрын
A later implementation that the Vault would need is to know how many tokens belong to each person that has depositedWithPermit? Great Vid!
@smartcontractprogrammer2 жыл бұрын
Video about vault is already published
@faranahmadk74018 ай бұрын
@@smartcontractprogrammer please guide. I can't find that vault video. Thanks
@chenghung34072 жыл бұрын
is permit function also needed to be written in the ERC20 token contract?
@smartcontractprogrammer2 жыл бұрын
no, it's not part of ERC20 standard
@善哥-j6v2 жыл бұрын
the signature only require a deadline and amount,is this mean 1 signature can use in all erc20_permit token?
@billamazing65272 жыл бұрын
usdt & usdc not support erc20, is there any way use permit to send them?
@rickdev2 жыл бұрын
In which scenario will we use this vault with depositWithPermit? it's a nice implementation detail but I can't understand where this will fit
@smartcontractprogrammer2 жыл бұрын
deposit - 2 transcations (approve and deposit) depositWithPermit - 1 transaction (no approve, replaced by permit)