Skip to content

Commit

Permalink
type safety
Browse files Browse the repository at this point in the history
  • Loading branch information
krpeacock committed Oct 20, 2023
1 parent 06f5845 commit 3d110e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/agent/src/agent/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,10 @@ export class HttpAgent implements Agent {
queryResponse: ApiQueryResponse,
subnetStatus: SubnetStatus | void,
): ApiQueryResponse => {
if (!subnetStatus || this.#verifyQuerySignatures === false) {
// This should not be called if the user has disabled verification
return queryResponse;
}
const { status, signatures, requestId } = queryResponse;

const domainSeparator = new TextEncoder().encode('\x0Bic-response');
Expand Down

0 comments on commit 3d110e5

Please sign in to comment.