From 2b7837eef50f2686a8d40ede04c7abda7e799019 Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Mon, 19 Nov 2018 16:44:27 -0200 Subject: [PATCH] add requirement check for allowed contract calls --- test-dapp/contracts/status/SNTController.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/test-dapp/contracts/status/SNTController.sol b/test-dapp/contracts/status/SNTController.sol index 7da290b..3ab06ba 100644 --- a/test-dapp/contracts/status/SNTController.sol +++ b/test-dapp/contracts/status/SNTController.sol @@ -103,6 +103,7 @@ contract SNTController is TokenController, Owned, MessageSigned { { uint256 startGas = gasleft(); require(startGas >= _gasMinimal, "Bad gas left"); + require(allowPublicExecution[_allowedContract], "Unallowed call"); bytes32 msgSigned = getSignHash( getExecuteGasRelayedHash( _allowedContract,