From f58c2e6fe5a3b0f1d888ae0b441098e99b8b0f80 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Sat, 18 May 2024 18:56:02 +0200 Subject: [PATCH] [faucet] add more error string --- .../shared/components/mempool-error/mempool-error.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/app/shared/components/mempool-error/mempool-error.component.ts b/frontend/src/app/shared/components/mempool-error/mempool-error.component.ts index a17c30715..e60c7c524 100644 --- a/frontend/src/app/shared/components/mempool-error/mempool-error.component.ts +++ b/frontend/src/app/shared/components/mempool-error/mempool-error.component.ts @@ -2,6 +2,7 @@ import { Component, Input, OnInit } from "@angular/core"; import { DomSanitizer, SafeHtml } from "@angular/platform-browser"; const MempoolErrors = { + 'bad_request': `Your request was not valid. Please try again.`, 'internal_server_error': `Something went wrong, please try again later`, 'acceleration_duplicated': `This transaction has already been accelerated.`, 'acceleration_outbid': `Your fee delta is too low.`, @@ -26,6 +27,8 @@ const MempoolErrors = { 'faucet_not_available': `The faucet is not available right now. Try again later.`, 'faucet_maximum_reached': `You are not allowed to request more coins`, 'faucet_address_not_allowed': `You cannot use this address`, + 'faucet_below_minimum': `Requested amount is too small`, + 'faucet_above_maximum': `Requested amount is too high`, } as { [error: string]: string }; export function isMempoolError(error: string) {