Skip to content
Permalink
ab7c957701
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
22 lines (16 sloc) 484 Bytes
pragma solidity >=0.8.7;
contract Transactions {
//Address --> Contract -- deposit
function deposit() external payable {
}
//Contract --> Address -- withdrawal
function withdraw(address payable _to, uint _amount) external {
_to.transfer(_amount);
}
function getBalance() external view returns(uint) {
return address(this).balance;
}
function getAddress() external view returns(address) {
return address(this);
}
}