I want to custom ERC20 tokens based on user input.
I can achieve this in two ways
create smart contract that will create new instance of token contracts with details provided by client.
Doing so, the creator of contract is marked as the parent contract and I'll have to transfer the custom tokens from parent contract to the
msg.sender
after token creation. How do I make the child contract know that the creator istx.origin
? Can I usedelegatecall
to achieve this? If so how?use
ethers.js
to create token. This will remove the problems as mentioned1.
but i'll need to find a way to keep track of the tokens created (make another transaction to store the data)
What is the best way to do this?