We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 852f7e0 commit 8922113Copy full SHA for 8922113
packages/snaps-controllers/src/snaps/registry/json.ts
@@ -218,9 +218,11 @@ export class JsonSnapsRegistry extends BaseController<
218
}
219
220
try {
221
- const database = await this.#safeFetch(this.#url.registry);
+ const [database, signature] = await Promise.all([
222
+ this.#safeFetch(this.#url.registry),
223
+ this.#safeFetch(this.#url.signature),
224
+ ]);
225
- const signature = await this.#safeFetch(this.#url.signature);
226
this.#verifySignature(database, signature);
227
228
this.update((state) => {
0 commit comments