DEV Community

Cover image for check my latest Smartcontract Deployment.
MahaLakshmi Perumal
MahaLakshmi Perumal

Posted on

check my latest Smartcontract Deployment.

Today I have created a SmartContract for sending money, it was just a testing small code as follow

"pragma solidity ^0.6.0;
contract SendMoneyExample {
uint public balanceReceived;
function receiveMoney() public payable {
balanceReceived += msg.value;
function getBalance() public view returns(uint) {
return address(this).balance;
function withdrawMoney() public { // not payable because we are taking money out, not in
address payable to = msg.sender;
function withdrawMoneyTo (address payable _to) public {

here is my deployment link on XinFin Network:

Check the video:

Discussion (0)