im creating an ERC20 token and i want to specify a maximium supply for my token?
I want to mint 2000 tokens.
1000 of that tokens to my wallet, and leave in the contract the other 1000 tokens.
Is that possibly?
erc-20remixsolidityweb3js
im creating an ERC20 token and i want to specify a maximium supply for my token?
I want to mint 2000 tokens.
1000 of that tokens to my wallet, and leave in the contract the other 1000 tokens.
Is that possibly?
Best Answer
You can achieve this with OpenZeppelin using the following code:
There's some more info in the docs here!