Skip to content

Commit

Permalink
feat(bytes-iter): add .nextAddress method
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrvk committed Jun 6, 2024
1 parent d27a372 commit 7f8296c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bytes-iter/bytes-iter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export class BytesIter<T> {
return this.ResultType(add0x(bytes))
}

public nextAddress(side = Side.Front): T {
return this.nextBytes(40, side)
}

public nextUint8(side = Side.Front): T {
return this.nextByte(side)
}
Expand Down

0 comments on commit 7f8296c

Please sign in to comment.