Skip to content

Commit

Permalink
rename getMyShares -> receiveDividends
Browse files Browse the repository at this point in the history
  • Loading branch information
CJentzsch committed Oct 22, 2015
1 parent 6d87dc2 commit 2e9661d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SlockCrowdfunding.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract SlockCrowdfunding
}

// after the crowdfunding is over, this function can be called to get the portion of the fees (which will be paid to this account) according to the contribution made
function getMyShare()
function receiveDividends()
{
address sender = msg.sender;
// as long as totalWeiReceived is zero (prior to finalize), myShare will always be zero since x / 0 = 0 in the EVM.
Expand All @@ -55,7 +55,7 @@ contract SlockCrowdfunding
// transfer (part of) your contribution to another address
function transfer(uint _value, address _to) external returns (bool _success)
{
getMyShare();
receiveDividends();
address sender = msg.sender;
uint myShares = distro[msg.sender];
if (_value <= myShares){
Expand Down

0 comments on commit 2e9661d

Please sign in to comment.