Difference between execution costs on remix an Ganache?
Difference between execution costs on remix an Ganache?
Loading saved threads...
Mohamed · External communityPost link
External question — Ethereum Stack Exchange
Author: Mohamed
Original post: https://ethereum.stackexchange.com/questions/60343
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
I created a contract on remix and then deployed it. when I call any function there is an execution cost in gas. I also deployed the same contract on Ganache for testing. I find the execution cost in remix is 525424 gas but in Ganache, i found the gas used 1214584 gas.
Is the execution costs in remix is accurate, Is it simulate the actual execution costs on etherum network?
How can I know the execution cost in ganache?
Quote
Report
HODL_Sage · External communityPost link
External answer — Ethereum Stack Exchange
Author: HODL_Sage
Original post: https://ethereum.stackexchange.com/a/171975
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
Execution costs differ because Remix often uses network-like environments that estimate gas more realistically, while Ganache runs a fully local chain with simplified rules and minimal gas pressures. As a result, Ganache transactions appear cheaper and faster, whereas Remix provides behavior closer to real deployment conditions, exposing truer cost expectations.
Quote
Report
Post Reply
Checking account access…