mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-06 23:53:10 +00:00
Make comments less confusing
(I hope) Co-Authored-By: Eric <5089238+emizzle@users.noreply.github.com>
This commit is contained in:
parent
795bf0eb4d
commit
6ef1ce5300
@ -38,8 +38,8 @@ suite "gas estimation":
|
|||||||
# ensure that time of latest block and pending block differ
|
# ensure that time of latest block and pending block differ
|
||||||
check (await contract.getTime(overrides=latest)) != time
|
check (await contract.getTime(overrides=latest)) != time
|
||||||
|
|
||||||
# fails with "Transaction ran out of gas" when gas estimation
|
# only succeeds when gas estimation is done using the pending block,
|
||||||
# is not done using the pending block
|
# otherwise it will fail with "Transaction ran out of gas"
|
||||||
await contract.checkTimeEquals(time)
|
await contract.checkTimeEquals(time)
|
||||||
|
|
||||||
test "contract gas estimation uses pending block":
|
test "contract gas estimation uses pending block":
|
||||||
@ -56,8 +56,8 @@ suite "gas estimation":
|
|||||||
let gas = await contract.estimateGas.checkTimeEquals(time)
|
let gas = await contract.estimateGas.checkTimeEquals(time)
|
||||||
let overrides = TransactionOverrides(gasLimit: some gas)
|
let overrides = TransactionOverrides(gasLimit: some gas)
|
||||||
|
|
||||||
# fails with "Transaction ran out of gas" when gas estimation
|
# only succeeds when gas estimation is done using the pending block,
|
||||||
# was not done using the pending block
|
# otherwise it will fail with "Transaction ran out of gas"
|
||||||
await contract.checkTimeEquals(time, overrides)
|
await contract.checkTimeEquals(time, overrides)
|
||||||
|
|
||||||
test "contract gas estimation honors a block tag override":
|
test "contract gas estimation honors a block tag override":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user