From faa9edd2c8c017cdf202aa362109c15e1ec25b34 Mon Sep 17 00:00:00 2001 From: Patrick Crosby Date: Mon, 24 Feb 2020 15:27:09 -0600 Subject: [PATCH] Bump seqno in sep7 replace (#22718) * Bump seqno in sep7 replace * Change not signed banner to yellow --- go/stellar/stellarsvc/service.go | 3 +++ .../__tests__/__snapshots__/Storyshots.test.js.snap | 8 ++++---- shared/wallets/sep7-confirm/index.tsx | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/go/stellar/stellarsvc/service.go b/go/stellar/stellarsvc/service.go index 28c715ec56c0..07b2171c35d6 100644 --- a/go/stellar/stellarsvc/service.go +++ b/go/stellar/stellarsvc/service.go @@ -834,6 +834,9 @@ func (s *Server) ApproveTxURILocal(ctx context.Context, arg stellar1.ApproveTxUR if err != nil { return "", err } + + // need to bump the seqno: + txEnv.Tx.SeqNum++ } // sign it diff --git a/shared/stories/__tests__/__snapshots__/Storyshots.test.js.snap b/shared/stories/__tests__/__snapshots__/Storyshots.test.js.snap index c44cf25b2acd..59115e5cbeec 100644 --- a/shared/stories/__tests__/__snapshots__/Storyshots.test.js.snap +++ b/shared/stories/__tests__/__snapshots__/Storyshots.test.js.snap @@ -495797,7 +495797,7 @@ Array [ className="box2_horizontal box2_fullWidth" style={ Object { - "backgroundColor": "#ff4d61", + "backgroundColor": "#FFF75A", "minHeight": 32, } } @@ -495829,7 +495829,7 @@ Array [ className="text_BodySmallSemibold" style={ Object { - "color": "#FFFFFF", + "color": "rgba(71, 31, 17, 0.75)", } } > @@ -496341,7 +496341,7 @@ Array [ className="box2_horizontal box2_fullWidth" style={ Object { - "backgroundColor": "#ff4d61", + "backgroundColor": "#FFF75A", "minHeight": 32, } } @@ -496373,7 +496373,7 @@ Array [ className="text_BodySmallSemibold" style={ Object { - "color": "#FFFFFF", + "color": "rgba(71, 31, 17, 0.75)", } } > diff --git a/shared/wallets/sep7-confirm/index.tsx b/shared/wallets/sep7-confirm/index.tsx index 7f473ab2bbf4..22decd14574e 100644 --- a/shared/wallets/sep7-confirm/index.tsx +++ b/shared/wallets/sep7-confirm/index.tsx @@ -112,9 +112,9 @@ const Header = (props: HeaderProps) => ( )} {!props.signed && ( - +