MoveLocation
Namespace: IotaSdk
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)
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 for this type is defined by the following ABNF:
move-location = object-id identifier u16 u16 (option identifier)
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()