Created
January 17, 2017 17:36
-
-
Save aramkoukia/3203cbd3ea4f98952dad22bd971c9d4b to your computer and use it in GitHub Desktop.
payout sample solidity smart contract
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
contract Payout { | |
address Victor; | |
address Jim; | |
address Kieren; | |
mapping (address => uint) ownershipDistribution; | |
function Setup() { | |
Victor = 0xaabb; | |
Jim = 0xccdd; | |
Kieren = 0xeeff; | |
ownershipDistribution[Victor] = 35; | |
ownershipDistribution[Jim] = 35; | |
ownershipDistribution[Kieren] = 30; | |
} | |
function Dividend() { | |
uint bal= this.balance; | |
Victor.send(bal * ownershipDistribution[Victor] / 100); | |
Jim.send(bal * ownershipDistribution[Jim] / 100); | |
Kieren.send(bal * ownershipDistribution[Kieren] / 100); | |
} | |
} |
What's the deal? Why hasn't anyone responded with a fix for this? Unsupported code? We would really love to use this tool, but if no one is going to support it I guess we have to go elsewhere. What a waste of people's time, both who ever created it and those of us frustrated trying to use it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
same here:
Contract Payout created successfully at address error uploading contract
Contract can be accessed here: http://localhost:8000/contracts/Payout/error uploading contract.html (default password: testing)