Hello, I need help to verify and publish my smart contract on BSC. It always throw me an error that says: " Error! Unable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode]) " below is the screen shot. I tried to revised it but it sometimes throw me a constructor error again.
Here is the code of my constructor:
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
pragma solidity ^0.8.0;
contract casinoDapp {
//global dynamic array for playerlist.
uint public nowPlaying;
uint public maxPlayer;
uint public minBet;
uint public currentBet;
uint public totalPayin;
uint public totalPayout;
uint public totalRefund;
uint public managementFee;
address payable public manager;
address payable[] private playerList;
address payable[] private refundedPlayers;
address payable[] private winnerList;
uint []private payinList;
uint []private payoutList;
uint []private refundList;
event ownershipTransferred(address indexed manager, address indexed newManager);
constructor() {
//msg.sender is a global variable used to store contract address to manager.
manager = payable(msg.sender);
maxPlayer =2;
minBet = 0.01 ether; //default is 0.01 ether.
managementFee = 1; //fixed fees.
totalPayin = getCasinoVolume();
totalPayout = getTotalPayout();
totalRefund = getTotalRefund();
emit ownershipTransferred(address(0), msg.sender);
}