createScript
createScript<
TName
,THumanReadableAbi
>(__namedParameters
):Script
<TName
,THumanReadableAbi
>
Creates a Tevm Script
instance from humanReadableAbi and bytecode
Type parameters
• TName extends string
• THumanReadableAbi extends readonly string
[]
Parameters
• __namedParameters: CreateScriptParams
<TName
, THumanReadableAbi
>
Returns
Script
<TName
, THumanReadableAbi
>
Examples
To use a json abi first pass it into formatAbi
to turn it into human readable
Source
createScript.js:50