Hello, so I have been trying to fork a project several times now. Everything works well except the part where I need to verify my contract on bscscan. Once I verify and optimize then it shows no problems, but when I try to read or write the contract it shows an error like this
. The code that I want to fork is this one https://github.com/safemoonprotocol/Safemoon.sol/blob/main/Safemoon.sol . I have changed name, symbol, token name and etc. Nothing works. And have compiled it in remix with solidity version 0.6.12 and the same on bscscan (solidity single file) (0.6.12)Welcome sjennif_f!
At first glance, this looks like a dev environment issue with improper deployment.
Can you try to verify it in Remix using a plugin? https://medium.com/remix-ide/verify-contracts-on-remix-with-sourcify-2912004d9c84