add requirement check for allowed contract calls

This commit is contained in:
Ricardo Guilherme Schmidt 2018-11-19 16:44:27 -02:00
parent 93a482d2f8
commit 2b7837eef5
No known key found for this signature in database
GPG Key ID: 3F95A3AD0B607030

View File

@ -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,