From 4bc3e6e6d5b5624d7f274c698e2e856c4c2e17cc Mon Sep 17 00:00:00 2001 From: 4000D Date: Mon, 6 Jan 2020 15:06:23 +0900 Subject: [PATCH] contracts: add msg.data check in MiniMeToken#fallback --- contracts/MiniMeToken.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/MiniMeToken.sol b/contracts/MiniMeToken.sol index 14be148d..d30237f1 100644 --- a/contracts/MiniMeToken.sol +++ b/contracts/MiniMeToken.sol @@ -482,6 +482,7 @@ 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 () public payable { + require(msg.data.length == 0); require(isContract(controller)); require(TokenController(controller).proxyPayment.value(msg.value)(msg.sender)); }