From 95f973e08aa1f2ffd0395d671b4d24ba5210fcfd Mon Sep 17 00:00:00 2001 From: Leo Alt Date: Tue, 18 May 2021 22:23:36 +0200 Subject: [PATCH] Fix gasleft variable name --- libsolidity/formal/SMTEncoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsolidity/formal/SMTEncoder.cpp b/libsolidity/formal/SMTEncoder.cpp index e19b6a1a0..d14d208aa 100644 --- a/libsolidity/formal/SMTEncoder.cpp +++ b/libsolidity/formal/SMTEncoder.cpp @@ -797,7 +797,7 @@ void SMTEncoder::visitCryptoFunction(FunctionCall const& _funCall) void SMTEncoder::visitGasLeft(FunctionCall const& _funCall) { - string gasLeft = "gasleft()"; + string gasLeft = "gasleft"; // We increase the variable index since gasleft changes // inside a tx. defineGlobalVariable(gasLeft, _funCall, true);