Offchain Approval with ERC20 Permit and Ethers.js
Channel: Smart Contract Programmer
Date: 2022-06-06

Example of how to use ERC20 permit to sign approval offchain so that you don't have to send 2 transactions (approve and transferFrom).

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

https://github.com/t4sk/hello-erc20-permit

#Solidity #SmartContract #Ethereum  #スマートコントラクト

Take a course
https://www.smartcontract.engineer/

Follow 
https://odysee.com/@SmartContractProgrammer:8
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com