Skip to content

Commit 1eb198a

Browse files
Compare feerecipient lowercase (#410)
1 parent cbc5d54 commit 1eb198a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/brain/src/modules/cron/reloadValidators/postValidatorsFeeRecipientsFromDb.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ export async function postValidatorsFeeRecipientsFromDb({
1616
validatorPubkeysFeeRecipients: { pubkey: string; feeRecipient: string }[];
1717
}): Promise<void> {
1818
const feeRecipientsToPost = validatorPubkeysFeeRecipients
19-
.filter((validator) => validator.feeRecipient !== dbData[validator.pubkey].feeRecipient)
19+
.filter(
20+
(validator) =>
21+
validator.feeRecipient.toLocaleLowerCase() !== dbData[validator.pubkey].feeRecipient.toLocaleLowerCase()
22+
)
2023
.map((validator) => ({
2124
pubkey: validator.pubkey,
2225
feeRecipient: dbData[validator.pubkey].feeRecipient

0 commit comments

Comments
 (0)