Skip to content

Commit

Permalink
fix: key
Browse files Browse the repository at this point in the history
  • Loading branch information
metallicalfa2 committed Oct 25, 2021
1 parent bc0c14b commit 54b71fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/TorusController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ export default class TorusController extends BaseController<TorusControllerConfi
try {
const res = await fetch(`${this.config.RelayHost[value]}/public_key`);
const res_json = await res.json();
relayMap[value] = res_json;
relayKeyHost[res_json] = this.config.RelayHost[value];
relayMap[value] = res_json.key;
relayKeyHost[res_json.key] = this.config.RelayHost[value];
} catch (e) {
return { [value]: "" };
}
Expand Down

0 comments on commit 54b71fe

Please sign in to comment.