0

I'm trying to implement a token and list it in pancakeswap. I got the code from babyusdt contract. I'm using truffle tool for compiling and deploying. This is the constructor:

enter image description here

Actually I changed the IUniswapV2Router constructor with this address: 0xA051966f823DEF0433Ac9eA84B0C5EFBA5011a08. This address is UniSwapV2Router contract deployed on testnet. The problem I'm having is first when I compile the contract this is shown:

enter image description here

But everything is fine. When I try to migrate the contract to the bsc testnet I see the following error:

enter image description here

What I'm doing wrong? I have the interface in my project and I just call the implementation like in the picture. Should I use libraries? I tried import uniswap contracts from @uniswap/v2-core/contracts or write the contract in the same file but the error is still occurring. When I remove these lines the error disappears. Please, any help? Thanks

Update: Debugging I saw the error is on the line _uniswapV2Router.factory() but I don't know what happens

2

1 Answer 1

1

Check the optimize with 200 or 500 runs to avoid the 24k warning

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.