(height: number)
| 22 | } |
| 23 | |
| 24 | get(height: number): T { |
| 25 | const details = this.getDetails(height); |
| 26 | |
| 27 | if (details === undefined) { |
| 28 | throw new EntryNotFoundError(height); |
| 29 | } |
| 30 | |
| 31 | return details.value; |
| 32 | } |
| 33 | |
| 34 | // Same as get but wont throw when there is nothing in the block range |
| 35 | getSafe(height: number): T | undefined { |