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.senderafter token creation. How do I make the child contract know that the creator is
tx.origin? Can I use
delegatecallto achieve this? If so how?
ethers.jsto create token. This will remove the problems as mentioned
1.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?