log transaction id before is sent
@@ -215,9 +215,11 @@ func (t *Transactions) SendSigned(
return nil, nil, err
}
- t.logger.StartProgress(fmt.Sprintf("Sending Transaction with ID: %s", tx.FlowTransaction().ID()))
+ t.logger.StartProgress("Sending Transaction")
defer t.logger.StopProgress()
+ t.logger.Info(fmt.Sprintf("Transaction ID: %s", tx.FlowTransaction().ID()))
+
sentTx, err := t.gateway.SendSignedTransaction(tx)
if err != nil {
return nil, nil, err
@@ -276,9 +278,11 @@ func (t *Transactions) Send(
return nil, nil, err
}
- t.logger.StartProgress(fmt.Sprintf("Sending Transaction with ID: %s", signed.FlowTransaction().ID()))
+ t.logger.StartProgress("Sending Transaction")
defer t.logger.StopProgress()
+ t.logger.Info(fmt.Sprintf("Transaction ID: %s", signed.FlowTransaction().ID()))
+
sentTx, err := t.gateway.SendSignedTransaction(signed)
if err != nil {
return nil, nil, err
