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 taken straight from the chain-decoded clever-error constant; it is
null when the abort predates clever errors or the transport didn't surface a name.
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 taken straight from the chain-decoded clever-error constant; it is null when the abort predates clever errors or the transport didn't surface a name.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.