codex-storage / nim-ethers

Port of ethers.js to Nim
Other
8 stars 4 forks source link

Fix: ensure that gas estimations are done using the "pending" block #65

Closed markspanbroek closed 7 months ago

markspanbroek commented 7 months ago

Gas estimations were done using the 'latest' block. This leads to problems with logic that relies on block timestamps. The estimation would be done using an old timestamp, and the transaction itself would be executed using a new timestamp. The transaction could then fail due to insufficient gas.