ganache icon indicating copy to clipboard operation
ganache copied to clipboard

fix: use adjusted time on estimate gas when latest block is being used

Open luzzif opened this issue 1 year ago • 1 comments

When estimating gas, use the adjusted timestamp in case the latest block tag is being used. This helps avoid some errors in time-dependent contracts when using Ganache in fork mode.

Should fix https://github.com/trufflesuite/ganache/issues/3528.

This is my first PR here, would love some guidance.

luzzif avatar Mar 04 '23 12:03 luzzif