@@ -2,10 +2,11 @@ package handler
22
33import (
44 "context"
5- "github.com/spf13/cast"
65 "math/big"
76 "strings"
87
8+ "github.com/spf13/cast"
9+
910 "github.com/ethereum/go-ethereum"
1011 "github.com/ethereum/go-ethereum/common"
1112 "github.com/ethereum/go-ethereum/core/types"
@@ -46,7 +47,7 @@ func LogFilter(ctx *svc.ServiceContext, block schema.SyncBlock, addresses []comm
4647 return LogsToEvents (ctx , logs , block .ID )
4748}
4849
49- func LogsToEvents (ctx * svc.ServiceContext , logs []types.Log , syncBlockId int64 ) ([]* schema.SyncEvent , error ) {
50+ func LogsToEvents (ctx * svc.ServiceContext , logs []types.Log , syncBlockID int64 ) ([]* schema.SyncEvent , error ) {
5051 var events []* schema.SyncEvent
5152 blockTimes := make (map [int64 ]int64 )
5253 sendMessageEvent := & event.SendMessage {}
@@ -78,7 +79,7 @@ func LogsToEvents(ctx *svc.ServiceContext, logs []types.Log, syncBlockId int64)
7879 payloadMsgBytes := payloadBytes (& vlog )
7980 evt := & schema.SyncEvent {
8081 Blockchain : ctx .Config .Blockchain ,
81- SyncBlockID : syncBlockId ,
82+ SyncBlockID : syncBlockID ,
8283 BlockTime : blockTime ,
8384 BlockNumber : cast .ToInt64 (vlog .BlockNumber ),
8485 BlockHash : vlog .BlockHash .Hex (),
0 commit comments