Skip to content

Commit

Permalink
Merge pull request #629 from EdgeApp/william/fix-api-key
Browse files Browse the repository at this point in the history
Fix default API key handling
  • Loading branch information
swansontec authored Nov 25, 2024
2 parents e27addb + b28483b commit ef1aa42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- fixed: Accept `''` to select the default API key.

## 2.20.2 (2024-11-21)

- fixed: Do not error when changing the PIN on accounts with children.
Expand Down
5 changes: 4 additions & 1 deletion src/core/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export async function makeContext(
const { io } = ios
const {
airbitzSupport = false,
apiKey = '4248c1bf41e53b840a5fdb2c872dd3ade525e66d',
apiSecret,
appId = '',
authServer = 'https://#.edge.app/api',
Expand All @@ -46,6 +45,10 @@ export async function makeContext(
skipBlockHeight = false,
syncServer
} = opts
let { apiKey } = opts
if (apiKey == null || apiKey === '') {
apiKey = '4248c1bf41e53b840a5fdb2c872dd3ade525e66d'
}
const infoServers =
typeof infoServer === 'string'
? [infoServer]
Expand Down

0 comments on commit ef1aa42

Please # to comment.