mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-02-10 13:26:46 +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();
|
uint256 startGas = gasleft();
|
||||||
require(startGas >= _gasMinimal, "Bad gas left");
|
require(startGas >= _gasMinimal, "Bad gas left");
|
||||||
|
require(allowPublicExecution[_allowedContract], "Unallowed call");
|
||||||
bytes32 msgSigned = getSignHash(
|
bytes32 msgSigned = getSignHash(
|
||||||
getExecuteGasRelayedHash(
|
getExecuteGasRelayedHash(
|
||||||
_allowedContract,
|
_allowedContract,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user