Fix event origin address

This commit is contained in:
Ayanami 2022-03-13 03:31:49 +09:00 committed by Danil Kovtonyuk
parent 69cf2b5aeb
commit 4dc3baa645

View File

@ -30,7 +30,7 @@ export function handleDeposit(event: Deposit): void {
entity.amount = result[1];
entity.currency = result[0];
entity.from = event.address;
entity.from = event.transaction.from;
entity.index = event.params.leafIndex;
entity.blockNumber = event.block.number;
entity.timestamp = event.block.timestamp;