infinite-proxy/contracts/example/module2/main.sol

15 lines
361 B
Solidity
Raw Normal View History

2022-04-15 11:46:15 +00:00
// 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_];
}
}