Skip to content

Commit

Permalink
fix: fix wrong address case when resolved from ENS name (#4894)
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Sep 30, 2024
1 parent 9e2e636 commit 620118d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/composables/useDelegates.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { LEADERBOARD_QUERY } from '@/helpers/queries';
import { getInstance } from '@snapshot-labs/lock/plugins/vue3';
import { getAddress } from '@ethersproject/address';
import { DelegateWithPercent, ExtendedSpace } from '@/helpers/interfaces';
import {
DelegationTypes,
Expand Down Expand Up @@ -88,7 +89,7 @@ export function useDelegates(space: ExtendedSpace) {
try {
const resolvedAddress = await resolveName(addressOrEns);
if (!resolvedAddress) return;
const response = await reader.getDelegate(resolvedAddress);
const response = await reader.getDelegate(getAddress(resolvedAddress));
loadStats([response.id]);
delegate.value = response;
} catch (e) {
Expand Down

0 comments on commit 620118d

Please sign in to comment.