Support for cast estimate
and cast estimate --create
Command
#618
Labels
Internal ⚙️
medium 🚩
Indicates moderately difficult item
p1 🟠
Indicates high priority item
upstream-parity 🟰
Needed for upstream feature parity
Milestone
Title: Support for
cast estimate
CommandDescription:
The
cast estimate
command is currently not supported infoundry-zksync
. This command estimates the gas cost of executing a transaction.Feature Request:
Implement the
cast estimate
command to enable gas estimation within thefoundry-zksync
environment.Purpose of
cast estimate
:The
cast estimate
command calculates the amount of gas required to execute a transaction or contract call, helping users anticipate costs and set appropriate gas limits.Key Features:
Common Options:
cast estimate --help
Example Usage:
Estimate gas for a transfer transaction from WETH contract on ZKsync mainnet:
cast estimate 0xf00DAD97284D0c6F06dc4Db3c32454D4292c6813 "transfer(address,uint256)" 0x7182fA7dF76406ffFc0289f36239aC1bE134f305 1000000000000000000 --rpc-url https://mainnet.era.zksync.io
Estimate gas for a contract deployment:
References:
The text was updated successfully, but these errors were encountered: