From c37e1bfc5763f307bfdcc2b9d4e9619f2456e78b Mon Sep 17 00:00:00 2001 From: Francisco Date: Mon, 12 Jun 2023 13:42:28 +0200 Subject: [PATCH] no BLL failure when approving --- .../src/components/BridgeForm/BridgeForm.svelte | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/bridge-ui/src/components/BridgeForm/BridgeForm.svelte b/packages/bridge-ui/src/components/BridgeForm/BridgeForm.svelte index cd734fc918c..5ac61de51c9 100644 --- a/packages/bridge-ui/src/components/BridgeForm/BridgeForm.svelte +++ b/packages/bridge-ui/src/components/BridgeForm/BridgeForm.svelte @@ -238,18 +238,11 @@ const headerError = 'Failed to approve
'; - // TODO: I think this is no needed here. Approving won't be affected by - // failing logic in BLL token. Remove when this is fully confirmed. - const noteError = - _token.symbol.toLocaleLowerCase() === 'bll' - ? '
Note: BLL token intentionally will fail 50% of the time
' - : ''; - if (error.cause?.status === 0) { const explorerUrl = `${$srcChain.explorerUrl}/tx/${error.cause.transactionHash}`; const htmlLink = `here`; errorToast( - `${headerError}Click ${htmlLink} to see more details on the explorer.${noteError}`, + `${headerError}Click ${htmlLink} to see more details on the explorer.`, true, // dismissible ); } else if ( @@ -257,7 +250,7 @@ ) { warningToast(`Transaction has been rejected.`); } else { - errorToast(`${headerError}Try again later.${noteError}`); + errorToast(`${headerError}Try again later.`); } } }