Skip to content

Instantly share code, notes, and snippets.

@Realkayzee
Last active August 3, 2022 16:58
Show Gist options
  • Select an option

  • Save Realkayzee/3edf958c8c7212ebef3d1ac55b8debab to your computer and use it in GitHub Desktop.

Select an option

Save Realkayzee/3edf958c8c7212ebef3d1ac55b8debab to your computer and use it in GitHub Desktop.
//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