From 6eea51f0dc4b725f921d19e6ae2b447bce11eb7f Mon Sep 17 00:00:00 2001 From: Vladislav Volosnikov Date: Mon, 26 Aug 2024 16:24:07 +0200 Subject: [PATCH] Run prettier --- system-contracts/contracts/EvmGasManager.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system-contracts/contracts/EvmGasManager.sol b/system-contracts/contracts/EvmGasManager.sol index cab0c2150..17bc3a68f 100644 --- a/system-contracts/contracts/EvmGasManager.sol +++ b/system-contracts/contracts/EvmGasManager.sol @@ -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 { @@ -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) @@ -156,6 +157,6 @@ contract EvmGasManager { require(stackDepth != 0); assembly { tstore(EVM_STACK_SLOT, sub(stackDepth, 1)) - } + } } }