Decode a @mysten/sui MoveAbort execution error into a PredictMoveError.
Returns null when error carries no MoveAbort (InsufficientGas, a size error, any
non-abort failure), so callers can fall back to a plain Error.
abortName is the chain-decoded clever-error constant when the fullnode surfaces one, and
otherwise the name ABORT_NAMES gives the module's plain code (Predict's constants are
plain codes, so this is the usual path). It is null when neither knows the abort.
code stays a bigint — a clever-error abort code packs the module, line, and
constant index into the high bits of the u64 and would lose precision as a Number.
Decode a
@mysten/suiMoveAbort execution error into a PredictMoveError. Returns null whenerrorcarries no MoveAbort (InsufficientGas, a size error, any non-abort failure), so callers can fall back to a plain Error.abortNameis the chain-decoded clever-error constant when the fullnode surfaces one, and otherwise the name ABORT_NAMES gives the module's plain code (Predict's constants are plain codes, so this is the usual path). It is null when neither knows the abort.codestays a bigint — a clever-error abort code packs the module, line, and constant index into the high bits of the u64 and would lose precision as a Number.