this is very basic but i just want to test the transfer function. I load the contract with the constructor with 1 eth, then when i click the transfer function 0 wei is transferred. I understand this contract isn't very secure or good. But I just want to get this simple transfer out to an address to demonstrate what can be done.
My below code is as follows:
pragma solidity ^0.4.20;
contract Escrow {
address public a;
address public b;
uint balance;
constructor() public payable {
a = msg.sender;
b = 0x14723a09acff6d2a60dcdf7aa4aff308fddc160c;
balance = address(this).balance;
}
function payoutToSeller() payable public returns(bool) {
if (msg.sender == a) {
b.transfer(balance);
}
}
function getData() public constant returns (uint) {
return balance;
}
}