diff --git a/src/logic/notifications/notificationBuilder.js b/src/logic/notifications/notificationBuilder.js index c2c0a9cb..006df334 100644 --- a/src/logic/notifications/notificationBuilder.js +++ b/src/logic/notifications/notificationBuilder.js @@ -34,8 +34,8 @@ const confirmationTxNotificationsQueue: NotificationsQueue = { pendingExecution: NOTIFICATIONS.TX_CONFIRMATION_PENDING_MSG, afterRejection: NOTIFICATIONS.TX_REJECTED_MSG, afterExecution: { - noMoreConfirmationsNeeded: NOTIFICATIONS.TX_CONFIRMATION_EXECUTED_MSG, - moreConfirmationsNeeded: null, + noMoreConfirmationsNeeded: NOTIFICATIONS.TX_EXECUTED_MSG, + moreConfirmationsNeeded: NOTIFICATIONS.TX_CONFIRMATION_EXECUTED_MSG, }, afterExecutionError: NOTIFICATIONS.TX_CONFIRMATION_FAILED_MSG, } diff --git a/src/logic/notifications/notificationTypes.js b/src/logic/notifications/notificationTypes.js index 14d18439..34b12c33 100644 --- a/src/logic/notifications/notificationTypes.js +++ b/src/logic/notifications/notificationTypes.js @@ -129,7 +129,7 @@ export const NOTIFICATIONS: Notifications = { options: { variant: INFO, persist: true }, }, TX_CONFIRMATION_EXECUTED_MSG: { - message: 'Confirmation transaction succesful', + message: 'Confirmation transaction was successful', options: { variant: SUCCESS, persist: false, autoHideDuration: longDuration }, }, TX_CONFIRMATION_FAILED_MSG: { diff --git a/src/routes/safe/store/actions/createTransaction.js b/src/routes/safe/store/actions/createTransaction.js index 2b85ee40..04ff30d1 100644 --- a/src/routes/safe/store/actions/createTransaction.js +++ b/src/routes/safe/store/actions/createTransaction.js @@ -108,6 +108,7 @@ const createTransaction = ( return receipt.transactionHash }) } catch (err) { + console.error(err) closeSnackbar(beforeExecutionKey) closeSnackbar(pendingExecutionKey) showSnackbar(notificationsQueue.afterExecutionError, enqueueSnackbar, closeSnackbar) @@ -116,7 +117,7 @@ const createTransaction = ( .execTransaction(to, valueInWei, txData, CALL, 0, 0, 0, ZERO_ADDRESS, ZERO_ADDRESS, sigs) .encodeABI() const errMsg = await getErrorMessage(safeInstance.address, 0, executeDataUsedSignatures, from) - console.error(`Error executing the TX: ${errMsg}`) + console.error(`Error creating the TX: ${errMsg}`) } return txHash diff --git a/src/routes/safe/store/actions/processTransaction.js b/src/routes/safe/store/actions/processTransaction.js index 1df89980..e3425387 100644 --- a/src/routes/safe/store/actions/processTransaction.js +++ b/src/routes/safe/store/actions/processTransaction.js @@ -143,6 +143,7 @@ const processTransaction = ( return receipt.transactionHash }) } catch (err) { + console.error(err) closeSnackbar(beforeExecutionKey) closeSnackbar(pendingExecutionKey) showSnackbar(notificationsQueue.afterExecutionError, enqueueSnackbar, closeSnackbar)