You are on page 1of 1

pragma solidity ^0.4.

0;

contract CustodialContract
{
address client;
bool _switch = false;
function CustodialContract()
{
client = msg.sender;
}

modifier ifClient()
{
if(msg.sender != client)
{
throw;
}
else
{
_;
}
}

function depositFunds() payable


{
}
function witdrowFunds(uint amount) ifClient
{
if(client.send(amount))
{
_switch = true;
}
else
{
_switch = false;
}
}

function getFunds() constant returns(uint)


{
return this.balance;
}
}

You might also like