Tyring to find the problem with this code, I think its something to do with the functionality being declared inside the interface? i feel like I’m close but just cant get it to compile. He it is below! any help would be GREAT!!! Thank you!!!
pragma solidity >=0.7.0 <0.9.0;
import './interfaces/IEnergiToken.sol';
import './ERC20.sol';
contract EnergiToken is ERC20, IEnergiToken {
address public owner;
string public name;
string public symbol;
uint8 public decimals;
bool public initialized = false;
function initialize(
address _owner,
string calldata _name,
string calldata _symbol,
uint8 _decimals
) external {
require(initialized == true);
owner = _owner;
name = _name;
symbol = _symbol;
decimals = _decimals;
initialized = false;
}
function setOwner(address _owner) external {
owner = _owner;
}
function mint(address recipient, uint amount) external {
_mint(recipient, amount);
}
function burn(address recipient, uint amount) external {
_burn(recipient, amount);
}
}