Skip to content

Commit

Permalink
(BIDS-2437) misc: fix fix-ens
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Dec 21, 2023
1 parent fc33b1c commit 77c8661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/misc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ func fixEns(erigonClient *rpc.ErigonClient) error {
if reverseName != addr.EnsName {
logrus.WithFields(logrus.Fields{"addr": fmt.Sprintf("%#x", addr.Address), "name": addr.EnsName, "reason": fmt.Sprintf("resolved != reverseResolved: %v != %v", addr.EnsName, reverseName)}).Warnf("deleting ens entry")
if !opts.DryRun {
_, err = db.WriterDb.Exec(`delete from ens where address = $1`, addr.Address)
_, err = db.WriterDb.Exec(`delete from ens where address = $1 and ens_name = $2`, addr.Address, addr.EnsName)
if err != nil {
return err
}
Expand Down

0 comments on commit 77c8661

Please sign in to comment.