Skip to main content

MoveLocation

data class MoveLocation(var package: ObjectId, var module: String, var function: UShort, var instruction: UShort, var functionName: String? = null) : Disposable

Location in move bytecode where an error occurred

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Constructors​

MoveLocationconstructor(package: ObjectId, module: String, function: UShort, instruction: UShort, functionName: String? = null)

Properties​

NameSummary
functionvar function: UShort
The function index
functionNamevar functionName: String?
The name of the function if available
instructionvar instruction: UShort
Index into the code stream for a jump. The offset is relative to the beginning of the instruction stream.
modulevar module: String
The module name
packagevar package: ObjectId
The package id

Functions​

NameSummary
destroyopen override fun destroy()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.