Skip to content

Instantly share code, notes, and snippets.

@Solid-Code
Solid-Code / transfer ether with contract call.sol
Last active August 27, 2017 21:39
Sample code to transfer ether with a contract to contract function call
pragma solidity ^0.4.13;
contract ForwardPaymentDemo {
//init contract variables
address owner;
address public RecievePaymentsDemo_addr;
function ForwardPaymentDemo() {
owner = msg.sender;
RecievePaymentsDemo_addr = new RecievePaymentDemo();