diff --git a/AllInteractions/src/mappings/DaoValidators.ts b/AllInteractions/src/mappings/DaoValidators.ts index c64c1986..b72153c5 100644 --- a/AllInteractions/src/mappings/DaoValidators.ts +++ b/AllInteractions/src/mappings/DaoValidators.ts @@ -20,7 +20,7 @@ export function onVoted(event: Voted): void { event.address ); - let voted = getDaoVaildatorProposalVote( + let vote = getDaoVaildatorProposalVote( event.transaction.hash, event.address, event.params.proposalId, @@ -31,10 +31,10 @@ export function onVoted(event: Voted): void { transaction.interactionsCount = transaction.interactionsCount.plus(BigInt.fromI32(1)); transaction.type = push(transaction.type, getEnumBigInt(TransactionType.DAO_VALIDATORS_VOTED)); - voted.transaction = transaction.id; + vote.transaction = transaction.id; transaction.save(); - voted.save(); + vote.save(); } export function onInternalProposalCreated(event: InternalProposalCreated): void {