Closed
Description
fiddle that reproes https://studio.nearprotocol.com/?f=opapxvcfg
fails on assert(name == null); in the following code
buffer: Uint8Array;
decoder: JSONDecoder<__near_JSONHandler_Array_Array_GameCellData>;
handledRoot: boolean = false;
value: Array<Array<wrapped_GameCellData>> = new Array<Array<wrapped_GameCellData>>();
pushObject(name: string): bool {
this.value.push(<Array<GameCellData>>__near_decode_Array_GameCellData(this.buffer, this.decoder.state));
return false;
}
pushArray(name: string): bool {
assert(name == null);
if (!this.handledRoot) {
this.handledRoot = true;
return true;
}
this.value.push(<Array<GameCellData>>__near_decode_Array_GameCellData(this.buffer, this.decoder.state));
return false;
}```
Metadata
Metadata
Assignees
Labels
No labels