fix: update tofrom addresses in event payload

This commit is contained in:
Mohamed Sohail 2023-07-10 12:19:54 +08:00
parent 659e8f5547
commit 3ac52c9373
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D

View File

@ -59,6 +59,7 @@ func (f *ApproveFilter) Execute(_ context.Context, transaction *fetch.Transactio
Block: transaction.Block.Number,
ContractAddress: celoutils.ChecksumAddress(transaction.To.Address),
Timestamp: hexutil.MustDecodeUint64(transaction.Block.Timestamp),
From: celoutils.ChecksumAddress(transaction.From.Address),
To: address.Hex(),
TxHash: transaction.Hash,
TxIndex: transaction.Index,