Skip to content

Commit

Permalink
improve unreachable error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed Mar 14, 2024
1 parent c59b061 commit 7ba854c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/proof-system/prover-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function encodeProverKey(value: SnarkKey): Uint8Array {
}
default:
value satisfies never;
throw Error('todo');
throw Error('unreachable');
}
}

Expand Down Expand Up @@ -165,7 +165,7 @@ function decodeProverKey(header: SnarkKeyHeader, bytes: Uint8Array): SnarkKey {
}
default:
header satisfies never;
throw Error('todo');
throw Error('unreachable');
}
}

Expand Down

0 comments on commit 7ba854c

Please sign in to comment.