deployHandler
deployHandler(
client
,options
?):DeployHandler
Creates a tree-shakable instance of deployHandler
for handling the deployment of contracts to TEVM.
This function uses callHandler
under the hood to execute the deployment.
Note: This is the internal logic used by higher-level APIs such as tevmDeploy
.
Parameters
• client: TevmNode
<"fork"
| "normal"
, object
>
The TEVM base client instance.
• options? = {}
Optional parameters.
• options.throwOnFail?: undefined
| boolean
= true
Whether to throw an error on failure.
Returns
The deploy handler function.
Throws
If throwOnFail
is true, returns TevmCallError
as value.