mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-22 15:56:45 +01:00
fix: update tofrom addresses in event payload
This commit is contained in:
parent
659e8f5547
commit
3ac52c9373
@ -59,6 +59,7 @@ func (f *ApproveFilter) Execute(_ context.Context, transaction *fetch.Transactio
|
|||||||
Block: transaction.Block.Number,
|
Block: transaction.Block.Number,
|
||||||
ContractAddress: celoutils.ChecksumAddress(transaction.To.Address),
|
ContractAddress: celoutils.ChecksumAddress(transaction.To.Address),
|
||||||
Timestamp: hexutil.MustDecodeUint64(transaction.Block.Timestamp),
|
Timestamp: hexutil.MustDecodeUint64(transaction.Block.Timestamp),
|
||||||
|
From: celoutils.ChecksumAddress(transaction.From.Address),
|
||||||
To: address.Hex(),
|
To: address.Hex(),
|
||||||
TxHash: transaction.Hash,
|
TxHash: transaction.Hash,
|
||||||
TxIndex: transaction.Index,
|
TxIndex: transaction.Index,
|
||||||
|
Loading…
Reference in New Issue
Block a user