calling tokenDepositEvent from transferFrom
lorien opened this issue · comments
lorien commented
Now if tokens are sent to treasury (with transfer
method) token calls tokenDepositEvent
from treasury contract.
I think tokenDepositEvent
should be called also if tokens are sent with transferFrom
method. What do you think?
Victor Baranov commented
For me too. I think, this event should be spread to both transfer methods.
lorien commented
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
I am not sure who should receive tokens if transferFrom
transfers tokens to treasury.:
msg.sender
?_from
?
lorien commented
Another possible solution of transferFrom issue: just restrict transferFrom to send tokens to treasury address.
Victor Baranov commented
Good idea with restriction