trufflesuite / ganache

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
2.6k stars 676 forks source link

Poc/transaction simulation gas estimate #4420

Closed jeffsmale90 closed 1 year ago

jeffsmale90 commented 1 year ago

This adds (exactimate) gas estimations to the evm_transactionSimulations rpc method. It accepts a gasEstimation property on the args param. This property may be "full" | "call-depth" | "none" (in actuality, it may be anything, but non-compliant values will be treated as none. full and call-depth are both treated the same, and are only distinguished in order to indicate our intention. This calls out to the gas-estimator class and add a gasEstimate property to the response.

cloudflare-pages[bot] commented 1 year ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d4bf602
Status:⚡️  Build in progress...

View logs