CreateScript
CreateScript<
TName
,THumanReadableAbi
,TAddress
,TBytecode
>: (…args
) =>Contract
<TName
,THumanReadableAbi
,TAddress
,Hex
,Hex
,Hex
>
Creates a deployless instance of a contract Can be used to execute code that isn’t deployed in tevm or viem
Type Parameters
• TName extends string
• THumanReadableAbi extends string
[] | readonly string
[]
• TAddress extends Address
| undefined
= undefined
• TBytecode extends Hex
| undefined
= undefined
Parameters
• …args: DeployArgs
<THumanReadableAbi
, TBytecode
>
Returns
Contract
<TName
, THumanReadableAbi
, TAddress
, Hex
, Hex
, Hex
>