From bb16c1943c6b2a09855c5734f8f5c30cb6c7c9d9 Mon Sep 17 00:00:00 2001 From: Braden Watling Date: Mon, 3 Jan 2022 17:46:12 -0500 Subject: [PATCH] Fix gas retaining statement. According to https://docs.soliditylang.org/en/v0.8.11/introduction-to-smart-contracts.html?highlight=63%2F64#message-calls, the caller forwards 63/64th of its gas, but here we seem to contradict that by saying the caller retains 63/64th of its gas. --- docs/control-structures.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 879901e44..0ce7d21e3 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -895,6 +895,6 @@ in scope in the block that follows. The error might have happened deeper down in the call chain and the called contract just forwarded it. Also, it could be due to an out-of-gas situation and not a deliberate error condition: - The caller always retains 63/64th of the gas in a call and thus + The caller always retains at least 1/64th of the gas in a call and thus even if the called contract goes out of gas, the caller still has some gas left.