Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMalformedLispTuple = errors.New("malformed lisp tuple: unexpected type in tuple structure")
ErrMalformedLispTuple is returned when the tuple structure doesn't match the expected lisp list format.
Functions ¶
func ParseLispTuple ¶
ParseLispTuple parses the result of a get method call that returns a Lisp-style list. T must be one of the types that ExecutionResult returns: *big.Int, *cell.Cell, or *cell.Slice. Returns an error if the tuple structure is malformed (e.g., unexpected types), which can indicate ABI mismatches or contract regressions. An empty input tuple returns nil without error.
To convert []*big.Int to []uint64, use lo.Map:
selectors := lo.Map(result, func(x *big.Int, _ int) uint64 { return x.Uint64() })
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.