0

My function in the contract:

function balanceOf(address _owner) public view returns (uint256) {
    require(_owner != address(0), "no owner addr");
    return ownershipTokenCount[_owner];
}

My js function:

return this.contract.deployed().then(deployed => {
  return deployed.balanceOf.call("0x0000000000000000000000000000000000000000");
}).catch(e => console.log(e));

When I call the js function it returns 3.963877391197344453575983046348115674221700746820753546331534351508065746944e+75 instead of printing out an error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.