changed fallback function to throw for accounts

This commit is contained in:
Griff Green 2017-01-02 13:48:40 +06:30 committed by GitHub
parent 274a3e0ae7
commit b079e443e3
1 changed files with 1 additions and 4 deletions

View File

@ -526,14 +526,11 @@ contract MiniMeToken is Controlled {
/// set to 0, then the `proxyPayment` method is called which relays the
/// ether and creates tokens as described in the token controller contract
function () payable {
if (controller == 0) throw;
if (isContract(controller)) {
if (! TokenController(controller).proxyPayment.value(msg.value)(msg.sender))
throw;
} else {
if (! controller.send(msg.value)) throw;
}
}
throw;
////////////////