Skip to content

Commit

Permalink
fix: logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Dec 10, 2024
1 parent b585fca commit 971edc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/eth/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ func (t *Reader) GetOnDemandPayments(ctx context.Context, accountIDs []gethcommo
// since payments are returned in the same order as the accountIDs, we can directly map them
for i, payment := range payments {
if payment.Cmp(big.NewInt(0)) == 0 {
t.logger.Warn("failed to get on demand payment for account", "account", accountIDs[i], "err", err)
t.logger.Warn("failed to get on demand payment for account", "account", accountIDs[i])
continue
}
paymentsMap[accountIDs[i]] = &core.OnDemandPayment{
Expand Down
2 changes: 1 addition & 1 deletion core/eth/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func isZeroValuedReservation(reservation paymentvault.IPaymentVaultReservation)
// Returns an error if the input reservation is zero-valued.
func ConvertToActiveReservation(reservation paymentvault.IPaymentVaultReservation) (*core.ActiveReservation, error) {
if isZeroValuedReservation(reservation) {
return nil, fmt.Errorf("reservation does not exist for given account")
return nil, fmt.Errorf("reservation is not a valid active reservation")
}

return &core.ActiveReservation{
Expand Down

0 comments on commit 971edc2

Please sign in to comment.