Last active
August 3, 2022 16:58
-
-
Save Realkayzee/3edf958c8c7212ebef3d1ac55b8debab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //SPDX-License-Identifier: MIT; | |
| pragma solidity 0.8.7; | |
| contract DepositFund{ | |
| mapping(address=>uint) balance; | |
| function deposit() public payable{ | |
| balance[msg.sender] += msg.value; | |
| } | |
| function CheckAddressDepBalance(address _addr) public view returns(uint){ | |
| return balance[_addr]; | |
| } | |
| function ContracBalance() public view returns (uint){ | |
| return address(this).balance; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment