Skip to content

Commit eb1908b

Browse files
authored
fix: prefix signal access (#1005)
Error was masked by ts-expect error.
1 parent 2435bc2 commit eb1908b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/block-brokers/src/trustless-gateway/trustless-gateway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ HTTP/1.1 %d %s
213213
} catch (cause: any) {
214214
// @ts-expect-error - TS thinks signal?.aborted can only be false now
215215
// because it was checked for true above.
216-
if (signal?.aborted === true) {
216+
if (options.signal?.aborted === true) {
217217
throw new Error(`Fetching raw block for CID ${cid} from gateway ${this.url} was aborted`)
218218
}
219219
this.#errors++

0 commit comments

Comments
 (0)