Skip to main content

SCRIPT_WIRE_VERSION

Constant SCRIPT_WIRE_VERSION 

Source
pub const SCRIPT_WIRE_VERSION: u16 = 4;
Expand description

Encoding version of the script surface.

Covers ScriptValue, ScriptCommand, FileDialogKind, ScriptTy, ScriptParam, ScriptSig, ScriptNs, ScriptPrelude, and PluginEvent.

Enum variants are append-only. The encoding writes a variant by its index, so inserting or reordering one silently reinterprets every variant after it as a different command. Add new variants at the end of their enum. Any other change to a shape listed above (a renamed or retyped field, a removed variant) bumps this constant.