Created
August 25, 2018 12:01
-
-
Save Enigmatic331/9c0fcc5d6fd54ce97a59fbf07a5eef62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.4.24; | |
contract mySender{ | |
address public owner; | |
uint counter = 0; | |
constructor() public payable{ | |
owner = msg.sender; | |
} | |
function multyTx(address[] addrs, uint[] values) public { | |
require(msg.sender==owner); | |
for(uint256 i=0;i<addrs.length;i++){ | |
// do something | |
} | |
} | |
// In case you change your mind, this will get your ether back to your account | |
function withdraw() public { | |
require(msg.sender == owner); | |
owner.transfer(address(this).balance); | |
} | |
function () public payable{} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment