Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Aug 26, 2024
1 parent 434f72d commit 6eea51f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions system-contracts/contracts/EvmGasManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ uint160 constant PRECOMPILES_END = 0xffff;
// Denotes that passGas has been consumed
uint256 constant INF_PASS_GAS = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
uint256 constant EVM_STACK_SLOT = 2;

contract EvmGasManager {
// We need strust to use `storage` pointers
struct WarmAccountInfo {
Expand Down Expand Up @@ -139,7 +140,7 @@ contract EvmGasManager {
stackDepth := tload(EVM_STACK_SLOT)
}
if (stackDepth == 0) return (INF_PASS_GAS, false);

assembly {
let stackPointer := add(EVM_STACK_SLOT, mul(2, stackDepth))
passGas := tload(stackPointer)
Expand All @@ -156,6 +157,6 @@ contract EvmGasManager {
require(stackDepth != 0);
assembly {
tstore(EVM_STACK_SLOT, sub(stackDepth, 1))
}
}
}
}

0 comments on commit 6eea51f

Please sign in to comment.