Skip to content

Commit

Permalink
Merge pull request #19 from spherex-collab/L06
Browse files Browse the repository at this point in the history
L06
  • Loading branch information
sfeyal committed Jul 31, 2023
2 parents 0df3f47 + 1baed67 commit 32abcbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SphereXProtected.sol
Expand Up @@ -184,7 +184,7 @@ abstract contract SphereXProtected {
* or a 'public' function from another address
*/
function _sphereXValidatePre(int256 num, bool isExternalCall)
internal
private
returnsIfNotActivated
returns (ModifierLocals memory locals)
{
Expand All @@ -207,7 +207,7 @@ abstract contract SphereXProtected {
* or a 'public' function from another address
*/
function _sphereXValidatePost(int256 num, bool isExternalCall, ModifierLocals memory locals)
internal
private
returnsIfNotActivated
{
uint256 gas = locals.gas - gasleft();
Expand All @@ -227,7 +227,7 @@ abstract contract SphereXProtected {
* @param num function identifier
* @return gas used before calling the original function body
*/
function _sphereXValidateInternalPre(int256 num) internal returnsIfNotActivated returns(uint256){
function _sphereXValidateInternalPre(int256 num) private returnsIfNotActivated returns(uint256){
_sphereXEngine().sphereXValidateInternalPre(num);
return gasleft();
}
Expand All @@ -238,7 +238,7 @@ abstract contract SphereXProtected {
* @param num function identifier
* @param gas the gas saved before the original function nody run
*/
function _sphereXValidateInternalPost(int256 num, uint256 gas) internal returnsIfNotActivated {
function _sphereXValidateInternalPost(int256 num, uint256 gas) private returnsIfNotActivated {
_sphereXEngine().sphereXValidateInternalPost(num, gas - gasleft());
}

Expand Down

0 comments on commit 32abcbf

Please sign in to comment.