Script.fromAsm constructor

Script.fromAsm(
  1. String asm
)

Constructs a script from the given script assembly string (asm). May return a matching sub-class for the given script.

Implementation

factory Script.fromAsm(String asm) => Script(
  asm.isEmpty
  ? []
  : asm.split(" ").map((s) => ScriptOp.fromAsm(s)).toList(),
);