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];
}Discussion 0
Join free to post in the discussion.
Related questions
- storage, memory, calldataBlockchain Developer
- Why emit eventsBlockchain Developer
- What msg.sender isBlockchain Developer
- Wei and etherBlockchain Developer
- view vs pureBlockchain Developer
- Sending ETH to a functionBlockchain Developer
- receive vs fallbackBlockchain Developer
- What revert undoesBlockchain Developer