Skip to content

Commit

Permalink
Compare feerecipient lowercase (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo authored Dec 12, 2024
1 parent cbc5d54 commit 1eb198a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export async function postValidatorsFeeRecipientsFromDb({
validatorPubkeysFeeRecipients: { pubkey: string; feeRecipient: string }[];
}): Promise<void> {
const feeRecipientsToPost = validatorPubkeysFeeRecipients
.filter((validator) => validator.feeRecipient !== dbData[validator.pubkey].feeRecipient)
.filter(
(validator) =>
validator.feeRecipient.toLocaleLowerCase() !== dbData[validator.pubkey].feeRecipient.toLocaleLowerCase()
)
.map((validator) => ({
pubkey: validator.pubkey,
feeRecipient: dbData[validator.pubkey].feeRecipient
Expand Down

0 comments on commit 1eb198a

Please sign in to comment.