Skip to content

Commit

Permalink
fix: fix wrong address case when resolved from ENS name
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Sep 29, 2024
1 parent 75ea2b2 commit 78ab7d1
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,4 +1,5 @@
import { getInstance } from '@snapshot-labs/lock/plugins/vue3';
import { getAddress } from '@ethersproject/address';
import {
DelegateWithPercent,
DelegatesVote,
Expand Down Expand Up @@ -92,7 +93,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));
delegate.value = response;
} catch (e) {
console.error(e);
Expand Down

0 comments on commit 78ab7d1

Please sign in to comment.