Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
logs should be printed in if/else
Browse files Browse the repository at this point in the history
  • Loading branch information
xmariachi committed Feb 13, 2024
1 parent bda520e commit ee24820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/node/appchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ func (ap *AppChain) SendUpdatedWeights(ctx context.Context, topicId uint64, resu
txResp, err := ap.Client.BroadcastTx(ctx, ap.ReputerAccount, req)
if err != nil {
ap.Logger.Info().Err(err).Msg("failed to send weights to allora blockchain")
} else {
ap.Logger.Info().Any("Tx Resp:", txResp).Msg("successfully sent weights to allora blockchain")
}

ap.Logger.Info().Any("Tx Resp:", txResp).Msg("successfully sent weights to allora blockchain")
}

func parseFloatToUint64Weights(input string) (uint64, error) {
Expand Down

0 comments on commit ee24820

Please sign in to comment.