You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Core_Array_Span_core_Felt252Core_Array_Span_core_Felt252 is the Go struct corresponding to the core::array::Span::<(core::felt252, core::array::Span::<core::felt252>)> struct.
type Core_Array_Span_core_Felt252Core_Array_Span_core_Felt252 struct {
Snapshot []core_Felt252Core_Array_Span_core_Felt252
}
// ParseCore_Array_Span_core_Felt252Core_Array_Span_core_Felt252 parses a Core_Array_Span_core_Felt252Core_Array_Span_core_Felt252 struct from a list of felts. This function returns a tuple of:
// 1. The parsed Core_Array_Span_core_Felt252Core_Array_Span_core_Felt252 struct
// 2. The number of field elements consumed in the parse
// 3. An error if the parse failed, nil otherwise
func ParseCore_Array_Span_core_Felt252Core_Array_Span_core_Felt252(parameters []*felt.Felt) (Core_Array_Span_core_Felt252Core_Array_Span_core_Felt252, int, error) {
currentIndex := 0
result := Core_Array_Span_core_Felt252Core_Array_Span_core_Felt252{}
value0, consumed, err := ParseArray[core_Felt252Core_Array_Span_core_Felt252](Parsecore_Felt252Core_Array_Span_core_Felt252)(parameters[currentIndex:])
if err != nil {
return result, 0, err
}
result.Snapshot = value0
currentIndex += consumed
return result, currentIndex, nil
}
The text was updated successfully, but these errors were encountered:
When generating code from this Dojo ABI: https://raw.githubusercontent.com/dojoengine/dojo/5a1176e8b00e11101410bda889c854bc5bef76d5/examples/spawn-and-move/abis/base/models/moves.json
All the
..._Felt252
types are buggy.The text was updated successfully, but these errors were encountered: