Help with this problem!?!?

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);
}
}

@Malik @filip @kresimir @kresna_sucandra Think it may be a interface problem? Not entirely sure

Hey @Mickey_McClimon, hope you are ok.

It would be great if you also share the IEnergiToken interface, i assume the ERC20 is the same from openzeppelin, so would be great to have all code to review it properly :nerd_face:

Carlos Z

1 Like

Thanks for reaching out! I was able to figure it out. I didn’t have all the source files as it was a challenge so I was not able to provide that. I ended up commenting it out, and importing ERC20, and making a constructor initialize the creation of the tokens.

1 Like