Skip to content

Commit

Permalink
ajna token address would be _to_; sender would be _from_
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNoepel committed Dec 20, 2023
1 parent bd3b3c0 commit 8c675f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mappings/ajna-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function handleDelegateVotesChanged(
export function handleAjnaTokenTransfer(
event: AjnaTokenTransferEvent
): void {
const ajnaToken = event.transaction.from
const ajnaToken = event.transaction.to!

const fromAccount = loadOrCreateAccount(addressToBytes(event.params.from))
fromAccount.tokens = wadToDecimal(getTokenBalance(ajnaToken, event.params.from))
Expand Down

0 comments on commit 8c675f9

Please sign in to comment.