0

*this a contract for erc721: contract erc721{ event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId); event Approval(address indexed _owner,address indexed _approved, uint256 indexed _tokedId);

function balanceOf(address _owner) external view returns(uint256);

*I am importing erc721 in my contract and using it in function with definition as below

function balanceOf(address _owner) external view returns(uint256){ return ownerZombieCount[_owner]; }

I am getting function override error in 2nd contract and abstract error in erc721 contract. please help in solving this.

1 Answer 1

0

have you tried adding override to make it

function balanceOf(address _owner) external override view returns(uint256)
{ 
    return ownerZombieCount[_owner]; 
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.