mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-01-27 14:44:47 +00:00
add requirement check for allowed contract calls
This commit is contained in:
parent
93a482d2f8
commit
2b7837eef5
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user