ERC 20 #6727
-
What is the purpose of OurToken contract in ERC20 lesson |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
So in the ERC20 lesson , Patrick writes 2 solidity contracts , they are |
Beta Was this translation helpful? Give feedback.
-
So, the |
Beta Was this translation helpful? Give feedback.
So in the ERC20 lesson , Patrick writes 2 solidity contracts , they are
ManualToken.sol
andOurToken.sol
.ManualToken.sol
is the manual implementation of a ERC20 token, but its very tiring to code up a TokenContract from scratch everytime we need a token right? , also think of it there is no much tweaks you can make to the basic transfer, trasferFrom ...., so its waste of time to code up ERC20 contract maunually , so the solution was to use a template kind of stuff , this is where the ERC20 contract from OpenZeppelin Steps in , when you inherit from this contract , you contract instantly gets the functions of an ERC20 token , after that if you want to ad d some other stuff , you could ab…