Hello. I need your help! Can't validate smart contract on BscScan. What am I doing wrong?
I'm pasting a flattened version of the contract. In the ABI field, I generate a byte code on the abi.hashex.org website indicating JSON and the address. Still an error.
Please help me figure out what I am doing wrong and what is the problem?
// Contract code
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts@4.5.0/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts@4.5.0/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts@4.5.0/security/Pausable.sol";
import "@openzeppelin/contracts@4.5.0/access/Ownable.sol";
contract Camloo is ERC20, ERC20Burnable, Pausable, Ownable {
constructor() ERC20("Camloo", "CAML") {
_mint(msg.sender, 100000000 * 10 ** decimals());
}
function pause() public onlyOwner {
_pause();
}
function unpause() public onlyOwner {
_unpause();
}
function _beforeTokenTransfer(address from, address to, uint256 amount)
internal
whenNotPaused
override
{
super._beforeTokenTransfer(from, to, amount);
}
}
did you followed all of the settings and configurations?
did you select the correct compiler version, did you enable optimization during compilation, did you used any library during compilation and deployment?
It’s amazing to know you’re conversant with HashEx.
I’ll advise you follow through and simply write in the official HashEx chat ([https://t.me/HashExOfficial]); I am sure you’ll be provided with adequate operational support.