Skip to content

Commit

Permalink
(NOBIDS) fix transforming ens with long names
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Sep 7, 2024
1 parent b50605e commit 1b8b202
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions db/ens.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ func (bigtable *Bigtable) TransformEnsNameRegistered(blk *types.Eth1Block, cache
utils.LogWarn(err, "error unpacking ens-log", 0, logFields)
continue
}
if err = verifyName(r.Name); err != nil {
utils.LogWarn(err, "error verifying ens-name", 0, logFields)
continue
}
keys[fmt.Sprintf("%s:ENS:V:N:%s", bigtable.chainId, r.Name)] = true
keys[fmt.Sprintf("%s:ENS:V:A:%x", bigtable.chainId, r.Owner)] = true
} else if bytes.Equal(lTopic, ensContracts.ENSETHRegistrarControllerParsedABI.Events["NameRenewed"].ID.Bytes()) {
Expand All @@ -180,6 +184,10 @@ func (bigtable *Bigtable) TransformEnsNameRegistered(blk *types.Eth1Block, cache
utils.LogWarn(err, "error unpacking ens-log", 0, logFields)
continue
}
if err = verifyName(r.Name); err != nil {
utils.LogWarn(err, "error verifying ens-name", 0, logFields)
continue
}
keys[fmt.Sprintf("%s:ENS:V:N:%s", bigtable.chainId, r.Name)] = true
}
} else if ensContract == "OldEnsRegistrarController" {
Expand Down

0 comments on commit 1b8b202

Please sign in to comment.