Skip to content

Instantly share code, notes, and snippets.

@Enigmatic331
Created August 25, 2018 12:01
Show Gist options
  • Save Enigmatic331/9c0fcc5d6fd54ce97a59fbf07a5eef62 to your computer and use it in GitHub Desktop.
Save Enigmatic331/9c0fcc5d6fd54ce97a59fbf07a5eef62 to your computer and use it in GitHub Desktop.
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