Help with Contract Verification on Binance

I was trying to verify the smart contract executed over Remix, Flattened code didn't work and so that JSON

:1234: Code to reproduce

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract SPP7Token is ERC20, ERC20Burnable, ERC20Pausable, Ownable {
    uint256 private constant INITIAL_SUPPLY = 700_000_000 * 10 ** 18;

    constructor(address initialOwner) ERC20("SPP7", "SPP7") Ownable(initialOwner) {
        _mint(initialOwner, INITIAL_SUPPLY);
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function _update(address from, address to, uint256 amount)
        internal
        override(ERC20, ERC20Pausable)
    {
        super._update(from, to, amount);
    }
}

:laptop: Environment

Remix

1 Like

A post was merged into an existing topic: How to verify a contract on Etherscan/BscScan/PolygonScan