Hi, first of all, thanks for reading!
In regards to the error, it could happen for a variety of reasons, among them:
- the gas amount exceeds what’s valid for the block
- a require is failing during some events, like the approval function
I’d need to see more details like a stack trace or your code to be able to identify the issue.
How many tokens are you trying to generate? Have you added correctly the amount and also the number of decimals?