New answers tagged

1

Make method balanceOf as public or replace: require(balanceOf(msg.sender) >= value, 'balance too low'); with: require(this.balanceOf(msg.sender) >= value, 'balance too low');


1

balanceOf() function is set as external function which cannot be called within the contract. Set it public instead and it should work fine


Top 50 recent answers are included