taking some online classes. I am trying to fork bsc token although when I try to launch it in remix I get an error “false transaction mined but execution failed” I have tried to fork several contracts and seem to get this same error. From the research I’ve done it seems to be coming from the constructor but it seems all the tokens I’m forking from used the same constructor? So I’m wondering what I’m doing wrong.
Any help appreciated
Update I // out a line within the constructor and then it will allow me to deploy Pair = IDEXFACTORY(router.factory)).createPair(WBNB, address(this)); Does anyone know how I would fix this error? I feel like I cannot remove this line as it relates to the pcs LP pairing
the chain
The issue seemed to be that I was using mainnet router and trying to launch on testnet. Thanks everyone for your support
Many tokens create a uniswap (or pancakeswap) pair when they deploy. If you try to deploy with a wrong router address, these tokens will not deploy.
Обсуждают сегодня