Skip to content

Commit c5fd07b

Browse files
committed
Merge branch 'note'
2 parents de137bb + 2eb4988 commit c5fd07b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

backend/coins/btc/transaction.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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")

backend/coins/eth/account.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)