MoveLocation
type MoveLocation
Location in move bytecode where an error occurred
BCS
The BCS serialized form for this type is defined by the following ABNF:
```text move-location = object-id identifier u16 u16 (option identifier) ```
type MoveLocation struct {
// The package id
Package *ObjectId
// The module name
Module string
// The function index
Function uint16
// Index into the code stream for a jump. The offset is relative to the
// beginning of the instruction stream.
Instruction uint16
// The name of the function if available
FunctionName *string
}
func MoveLocationFromBcs
func MoveLocationFromBcs(bcs []byte) (MoveLocation, error)
Create this type from BCS encoded bytes.
func MoveLocationFromJson
func MoveLocationFromJson(json string) (MoveLocation, error)
Create this type from JSON encoded string.
func (*MoveLocation) Destroy
func (r *MoveLocation) Destroy()