Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move horizon handling to networker #1255

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Clean up CustomError text
  • Loading branch information
ebma committed Jun 7, 2021
commit 58f987637712d3ed8994237dcfbeab7f39c042b8
2 changes: 1 addition & 1 deletion i18n/locales/en/generic.json
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
"cosigner-lacking-key": "Cannot add key pair as co-signer of an account, since no public key for the account to co-sign has been provided",
"expected-json-response-error": "Expected {{url}} to return a JSON response. Content type was {{contentType}} instead.",
"existing-account-error": "An account with that name does already exist.",
"fetch-account-data-error": "Cannot fetch account data of {{account}} from {{horizon}}",
"fetch-account-data-error": "Cannot fetch account data of {{account}}",
"fetch-signature-requests-error": "Fetching signature requests failed: {{response}} \nService: {{service}}",
"fetch-web-auth-challenge-error": "Cannot fetch web auth challenge",
"http-request-error": "HTTP fetch failed: {{response}} \nService: {{service}}",
4 changes: 2 additions & 2 deletions i18n/locales/es/generic.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
"bio-auth-test-canceled": "Autenticación biométrica anulada",
"expected-json-response-error": "Se esperaba que {{url}} responda en formato JSON. El tipo de contenido fue {{contentType}}.",
"existing-account-error": "Ya existe otra cuenta con el mismo nombre.",
"fetch-account-data-error": "Imposible recuperar los datos de la cuenta de {{account}} desde {{horizon}}",
"fetch-account-data-error": "Imposible recuperar los datos de la cuenta de {{account}}",
"fetch-web-auth-challenge-error": "Error al obtener el desafío de autenticación",
"fetch-signature-requests-error": "Fallaron las solicitudes de recuperar firmas: {{response}} \nServicio: {{service}}",
"invariant-violation-error": "Violación invariante: {{message}}",
@@ -96,4 +96,4 @@
"user-interface": {
"copied-to-clipboard": "Copiado a Portapapeles."
}
}
}
2 changes: 1 addition & 1 deletion i18n/locales/it/generic.json
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
"bio-auth-test-canceled": "Autenticazione biometrica annullata",
"expected-json-response-error": "Previsto che {{url}} restituisse una risposta JSON. Il tipo di contenuto era invece {{contentType}}.",
"existing-account-error": "Esiste già un account con quel nome.",
"fetch-account-data-error": "Impossibile recuperare i dati dell'account di {{account}} da {{horizon}}",
"fetch-account-data-error": "Impossibile recuperare i dati dell'account di {{account}}",
"fetch-signature-requests-error": "Recupero delle richieste di firma non riuscito: {{response}} \nService: {{service}}",
"invariant-violation-error": "Violazione invariante: {{message}}",
"low-reserve-order-error": "Impossibile effettuare l'ordine perché il saldo XLM spendibile è troppo basso.",
3 changes: 1 addition & 2 deletions src/TransferService/hooks/useWithdrawalState.ts
Original file line number Diff line number Diff line change
@@ -158,8 +158,7 @@ export function useWithdrawalState(account: Account, closeDialog: () => void) {

if (!accountData) {
throw CustomError("FetchAccountDataError", `Cannot fetch account data of ${account.accountID}`, {
account: account.accountID,
horizon: ""
account: account.accountID
})
}