Skip to content

Commit a9fab99

Browse files
committed
use contributor address instead of msg.sender in returnPurchase
1 parent 47f6025 commit a9fab99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/LifCrowdsale.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,9 @@ contract LifCrowdsale is Ownable, Pausable {
398398
uint256 toReturn = purchases[contributor];
399399
assert(toReturn > 0);
400400

401-
purchases[msg.sender] = 0;
401+
purchases[contributor] = 0;
402402

403-
msg.sender.transfer(toReturn);
403+
contributor.transfer(toReturn);
404404
}
405405

406406
/**

0 commit comments

Comments
 (0)