fromNumber
scrypt-ts-opcat / Opcode / fromNumber
Function: fromNumber()
fromNumber(
num
):Opcode
Defined in: node_modules/@opcat-labs/opcat/types/opcode.d.cts:68
Creates an Opcode instance from a number.
Parameters
num
number
The numeric value to convert to an Opcode.
Returns
A new Opcode instance.
Throws
If the input is not a number.