changed fallback function to throw for accounts
This commit is contained in:
parent
274a3e0ae7
commit
b079e443e3
|
@ -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;
|
||||
|
||||
|
||||
////////////////
|
||||
|
|
Loading…
Reference in New Issue