codedamn

Create a wallet

Created by Kshitij about a year ago

0

No description provided

1 Comment

    0

    actually i cant figure out the problem which i get from my code contract Wallet { address public owner;

    constructor(address _owner) {
    owner = _owner;
    }
    
    function deposit() payable ether{
    
    }
    
    function sendEther(address _receiver, uint _amount) public {
    require(msg.sender == owner, "sender is not allowed");
    payable(_receiver).transfer(_amount);
    }
    
    function balanceOf() public view returns(uint){
        return address(this).balance;
    }
    

    }

    @rohitranjan

    Rohit Ranjan Singh

    @rohitranjan

Your comment