From b40d8de953c3b3f873773cc78a8045ed8d112b72 Mon Sep 17 00:00:00 2001 From: iamacook Date: Thu, 3 Mar 2022 13:12:43 +0100 Subject: [PATCH] fix: clarify nonce warning --- src/components/ReviewInfoText/ReviewInfoText.test.tsx | 4 ++-- src/components/ReviewInfoText/index.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/ReviewInfoText/ReviewInfoText.test.tsx b/src/components/ReviewInfoText/ReviewInfoText.test.tsx index a66255493e..bee1612902 100644 --- a/src/components/ReviewInfoText/ReviewInfoText.test.tsx +++ b/src/components/ReviewInfoText/ReviewInfoText.test.tsx @@ -66,7 +66,7 @@ describe('', () => { expect(screen.getByText(/6/)).toBeInTheDocument() expect(screen.getByText(/9/)).toBeInTheDocument() - expect(screen.getByText(/is below the latest transaction's nonce./)).toBeInTheDocument() - expect(screen.getByText(/Your transaction might fail./)).toBeInTheDocument() + expect(screen.getByText(/is below the latest transaction's nonce in your queue./)).toBeInTheDocument() + expect(screen.getByText(/Please verify the submitted nonce./)).toBeInTheDocument() }) }) diff --git a/src/components/ReviewInfoText/index.tsx b/src/components/ReviewInfoText/index.tsx index 20adc61bb0..268f724e41 100644 --- a/src/components/ReviewInfoText/index.tsx +++ b/src/components/ReviewInfoText/index.tsx @@ -59,7 +59,8 @@ export const ReviewInfoText = ({ /* tx in the past */ <> Nonce  {safeTxNonce} -  is below the latest transaction's nonce. Your transaction might fail. Please use nonce  +  is below the latest transaction's nonce in your queue. Please verify the submitted nonce. The + next recommended nonce is   {recommendedNonce}. )}