asm property
The ASM string representation of this operation
Implementation
@override
String get asm {
// If numerical: return -1 if OP_1NEGATE, 0 if zero, or hex
final n = number;
if (n == 0) return "0";
if (n == -1) return "-1";
if (n != null) return n.toRadixString(16).padLeft(2, "0");
// All other opcodes given by name
return "OP_${scriptOpCodeToName[code] ?? "UNKNOWN"}";
}