Skip to content

Commit

Permalink
Fix: celestials panic
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Feb 18, 2025
1 parent fb9451e commit 968b634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/celestials/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func main() {
return 0, errors.Errorf("invalid prefix: %s", prefix)
}
addressId, err := pg.Address.IdByHash(ctx, hash)
if err != nil || len(address) == 0 {
if err != nil || len(addressId) == 0 {
return 0, errors.Errorf("can't find address %s in database", address)
}
return addressId[0], nil
Expand Down

0 comments on commit 968b634

Please sign in to comment.