From c85192ae3473a5c2436a44473b4b414c2d885cb4 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Tue, 15 Apr 2025 10:37:21 +0200 Subject: [PATCH] Make comments less confusing (I hope) Co-Authored-By: Eric <5089238+emizzle@users.noreply.github.com> --- testmodule/testGasEstimation.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testmodule/testGasEstimation.nim b/testmodule/testGasEstimation.nim index 3b01a35..a7d2df2 100644 --- a/testmodule/testGasEstimation.nim +++ b/testmodule/testGasEstimation.nim @@ -38,8 +38,8 @@ suite "gas estimation": # ensure that time of latest block and pending block differ check (await contract.getTime(overrides=latest)) != time - # fails with "Transaction ran out of gas" when gas estimation - # is not done using the pending block + # only succeeds when gas estimation is done using the pending block, + # otherwise it will fail with "Transaction ran out of gas" await contract.checkTimeEquals(time) test "contract gas estimation uses pending block": @@ -56,8 +56,8 @@ suite "gas estimation": let gas = await contract.estimateGas.checkTimeEquals(time) let overrides = TransactionOverrides(gasLimit: some gas) - # fails with "Transaction ran out of gas" when gas estimation - # was not done using the pending block + # only succeeds when gas estimation is done using the pending block, + # otherwise it will fail with "Transaction ran out of gas" await contract.checkTimeEquals(time, overrides) test "contract gas estimation honors a block tag override":