projectchicago / gastoken

⛽ Tokenize gas on Ethereum with GasToken ⛽
https://gastoken.io
718 stars 89 forks source link

A question in GSTTokenv2 #16

Closed infinityhacker closed 5 years ago

infinityhacker commented 5 years ago

when calling free in GST2.sol, it will call selfdestruct and send all asset to msg.sender, why? I think it should be send to tx.origin?

lorenzb commented 5 years ago

The child contracts being destroyed should not hold any ether. So the beneficiary of the selfdestruct does not matter.