Skip to content
RED SAGSkills
easy5 pts · first answer countssolidity

Reading a missing mapping key

What does this function return for an address that was never added?

mapping(address => uint256) public balances;

function balanceOf(address user) external view returns (uint256) {
    return balances[user];
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions