From b079e443e352638f10726248fa7851ba4e616282 Mon Sep 17 00:00:00 2001 From: Griff Green Date: Mon, 2 Jan 2017 13:48:40 +0630 Subject: [PATCH] changed fallback function to throw for accounts --- MiniMeToken.sol | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MiniMeToken.sol b/MiniMeToken.sol index 4b46626..682cd27 100644 --- a/MiniMeToken.sol +++ b/MiniMeToken.sol @@ -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; ////////////////