Hi Magnus,
I found a solution! Just change your import... refer below
The key is:
- Use
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
- do not use import http link, it will work on Remix
- Use Remix flattener plug in to flatten the file.
- Remove all the extra pragma and license
- Might have some error due to sequence of each openzeppelin code chunk, just re-organize it.
- deploy the flattened .sol file
- On BSCscan page, use single file verification
- Copy the flattened .sol
- Do not use optimization
- Should be ok. I get it verified on testnet and mainnet
https://testnet.bscscan.com/address/0x718c35c014f8cdc2b6ee810dab44a4da8cb40887#code
https://bscscan.com/address/0x07dafaf783bc253ac310692856e863b659d8f3ca#code