mirror of https://github.com/vacp2p/minime.git
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
|
/// set to 0, then the `proxyPayment` method is called which relays the
|
||||||
/// ether and creates tokens as described in the token controller contract
|
/// ether and creates tokens as described in the token controller contract
|
||||||
function () payable {
|
function () payable {
|
||||||
if (controller == 0) throw;
|
|
||||||
if (isContract(controller)) {
|
if (isContract(controller)) {
|
||||||
if (! TokenController(controller).proxyPayment.value(msg.value)(msg.sender))
|
if (! TokenController(controller).proxyPayment.value(msg.value)(msg.sender))
|
||||||
throw;
|
throw;
|
||||||
} else {
|
} else {
|
||||||
if (! controller.send(msg.value)) throw;
|
throw;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
////////////////
|
////////////////
|
||||||
|
|
Loading…
Reference in New Issue