Skip to content

Commit

Permalink
add a todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Sep 4, 2023
1 parent c7c721e commit 3d2e59a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ssz/src/type/optional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export class OptionalType<ElementType extends Type<unknown>> extends CompositeTy

getIndexProperty(index: number): string | number | null {
if (isCompositeType(this.elementType)) {
// TODO: need to unconcat the VALUE_GINDEX from the index
return this.elementType.getIndexProperty(index);
} else {
throw Error("not applicable for Optional basic type");
Expand Down

0 comments on commit 3d2e59a

Please sign in to comment.