Skip to content

Commit

Permalink
Merge pull request #113 from Giveth/fix/user_address_capitalization
Browse files Browse the repository at this point in the history
Fixed saved user id capitalization
  • Loading branch information
aminlatifi committed Sep 3, 2024
2 parents cdd94bb + 34db5ba commit e3eba98
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/controllers/projectVerificationAttestation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
getAttestationData,
removeDuplicateProjectAttestations,
} from "./utils/easHelper";
import { AttestorOrganisation, ProjectAttestation } from "../model";
import { ProjectAttestation } from "../model";
import {
getAttestor,
getOrCreateAttestorOrganisation,
Expand All @@ -18,12 +18,10 @@ export const handleProjectAttestation = async (
ctx: DataHandlerContext<Store>,
log: Log
): Promise<void> => {
const {
uid,
schema: schemaUid,
attestor: issuer,
recipient,
} = EASContract.events.Attested.decode(log);
const attestedEvent = EASContract.events.Attested.decode(log);

const { uid, schema: schemaUid, recipient } = attestedEvent;
const issuer = attestedEvent.attestor.toLowerCase();

const { decodedData, refUID } = await getAttestationData(
ctx,
Expand Down

0 comments on commit e3eba98

Please sign in to comment.