I am experimenting with my own token and interacting with uniswap v2 (mainet fork ganache) and after succesfully adding liquidity and a first swap i get the following error:
1) Contract: TestToken
Buy tokens for 3 accounts from pair:
Transaction: 0xd5b6cde13ddc17d06c3e7b29d109650650bee45a77c933520cb324393f66288d exited with an error (status 0).
Please check that the transaction:
- satisfies all conditions set by Solidity `require` statements.
- does not trigger a Solidity `revert` statement.
StatusError: Transaction: 0xd5b6cde13ddc17d06c3e7b29d109650650bee45a77c933520cb324393f66288d exited with an error (status 0).
at Context.<anonymous> (test\test.js:79:21)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I've uploaded a minimal example at: https://github.com/4compu/TestToken
Anyone got a glue what goes wrong?