Skip to main content

MoveLocation

MoveLocation

struct MoveLocation

Location in move bytecode where an error occurred

BCS

The BCS serialized form for this type is defined by the following ABNF:

move-location = object-id identifier u16 u16 (option identifier)

init(package:module:function:instruction:functionName:)

init(package: ObjectId, module: String, function: UInt16, instruction: UInt16, functionName: String? = nil)

function

var function: UInt16

The function index

functionName

var functionName: String?

The name of the function if available

instruction

var instruction: UInt16

Index into the code stream for a jump. The offset is relative to the beginning of the instruction stream.

module

var module: String

The module name

package

var package: ObjectId

The package id