File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -214,8 +214,6 @@ func (account *Account) SendTx() error {
214214 return errp .New ("No active tx proposal" )
215215 }
216216
217- note := account .BaseAccount .GetAndClearProposedTxNote ()
218-
219217 account .log .Info ("Signing and sending transaction" )
220218 utxos := account .transactions .SpendableOutputs ()
221219 if err := account .signTransaction (txProposal , utxos , account .coin .Blockchain ().TransactionGet ); err != nil {
@@ -226,6 +224,8 @@ func (account *Account) SendTx() error {
226224 if err := account .coin .Blockchain ().TransactionBroadcast (txProposal .Transaction ); err != nil {
227225 return err
228226 }
227+
228+ note := account .BaseAccount .GetAndClearProposedTxNote ()
229229 if err := account .SetTxNote (txProposal .Transaction .TxHash ().String (), note ); err != nil {
230230 // Not critical.
231231 account .log .WithError (err ).Error ("Failed to save transaction note when sending a tx" )
Original file line number Diff line number Diff line change @@ -587,8 +587,6 @@ func (account *Account) SendTx() error {
587587 return errp .New ("No active tx proposal" )
588588 }
589589
590- note := account .BaseAccount .GetAndClearProposedTxNote ()
591-
592590 account .log .Info ("Signing and sending transaction" )
593591 if err := account .Config ().Keystore .SignTransaction (txProposal ); err != nil {
594592 return err
@@ -602,6 +600,8 @@ func (account *Account) SendTx() error {
602600 if err := account .storePendingOutgoingTransaction (txProposal .Tx ); err != nil {
603601 return err
604602 }
603+
604+ note := account .BaseAccount .GetAndClearProposedTxNote ()
605605 if err := account .SetTxNote (txProposal .Tx .Hash ().Hex (), note ); err != nil {
606606 // Not critical.
607607 account .log .WithError (err ).Error ("Failed to save transaction note when sending a tx" )
You can’t perform that action at this time.
0 commit comments