MoveLocation
Namespace: IotaSdk
Location in move bytecode where an error occurred
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
public record class MoveLocation : System.IDisposable, System.IEquatable`1[[IotaSdk.MoveLocation, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → MoveLocation
Implements IDisposable, IEquatable<MoveLocation>
Attributes NullableContextAttribute, NullableAttribute
Properties
Package
The package id
public ObjectId Package { get; init; }
Property Value
Module
The module name
public string Module { get; init; }
Property Value
Function
The function index
public ushort Function { get; init; }
Property Value
Instruction
Index into the code stream for a jump. The offset is relative to the beginning of the instruction stream.
public ushort Instruction { get; init; }
Property Value
FunctionName
The name of the function if available
public string? FunctionName { get; init; }
Property Value
Constructors
MoveLocation(ObjectId, String, UInt16, UInt16, String)
Location in move bytecode where an error occurred
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
public MoveLocation(ObjectId Package, string Module, ushort Function, ushort Instruction, string? FunctionName = null)
Parameters
Package ObjectId
The package id
Module String
The module name
Function UInt16
The function index
Instruction UInt16
Index into the code stream for a jump. The offset is relative to the beginning of the
instruction stream.
FunctionName String?
The name of the function if available
Methods
Dispose()
public void Dispose()
ToBcs()
Convert this type to BCS encoded bytes.
public Byte[] ToBcs()
Returns
Exceptions
ToDisplayString()
Render this type as human-readable text.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
public string ToDisplayString()
Returns
ToJson()
Convert this type to a JSON encoded string.
public string ToJson()