From 7b256bede8d94dbedb85341cfb0212c043226d15 Mon Sep 17 00:00:00 2001 From: Ed Noepel Date: Tue, 19 Dec 2023 14:26:03 -0500 Subject: [PATCH] delegator is recipient of tokens --- src/mappings/ajna-token.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mappings/ajna-token.ts b/src/mappings/ajna-token.ts index ebdca83..51db140 100644 --- a/src/mappings/ajna-token.ts +++ b/src/mappings/ajna-token.ts @@ -53,7 +53,7 @@ export function handleDelegateVotesChanged( let entity = new DelegateVotesChanged( event.transaction.hash.concatI32(event.logIndex.toI32()) ) - entity.delegator = event.transaction.from + entity.delegator = event.transaction.to! entity.delegate = event.params.delegate entity.previousBalance = wadToDecimal(event.params.previousBalance) entity.newBalance = wadToDecimal(event.params.newBalance)