Skip to content

Commit

Permalink
Добавлена проверка на id транзакции в методе externalBuy
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Veynik committed Jan 16, 2018
1 parent 34b36a5 commit 29e6e47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/AllocatedCappedCrowdsale.sol
Expand Up @@ -529,6 +529,8 @@ contract AllocatedCappedCrowdsale is Haltable, ValidationUtil {
* Покупка токенов через внешние системы
*/
function externalBuy(address buyerAddress, uint weiAmount, uint txId) external onlyOwner {
require(txId != 0);

internalInvest(buyerAddress, weiAmount, txId);
}

Expand Down

0 comments on commit 29e6e47

Please sign in to comment.