infinite-proxy/contracts/example/module2/main.sol
2022-04-15 17:16:15 +05:30

15 lines
361 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../common/variables.sol";
contract ReadModule is Variables {
/**
* @dev Read function to get user's balance in the contract.
* @param user_ address of user.
*/
function userBalance(address user_) public view returns (uint256) {
return _userBalance[user_];
}
}