Skip to content

Commit

Permalink
feat: feat: eth: Add support for blockHash param
Browse files Browse the repository at this point in the history
in eth_getLogs
  • Loading branch information
LinZexiao committed Aug 29, 2023
1 parent d0a8537 commit 88e1013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/submodule/eth/eth_event_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (e *ethEventAPI) installEthFilterSpec(ctx context.Context, filterSpec *type
return nil, fmt.Errorf("must not specify block hash and from/to block")
}

// TODO: derive a tipset hash from eth hash - might need to push this down into the EventFilterManager
tipsetCid = filterSpec.BlockHash.ToCid()
} else {
if filterSpec.FromBlock == nil || *filterSpec.FromBlock == "latest" {
ts, err := e.ChainAPI.ChainHead(ctx)
Expand Down

0 comments on commit 88e1013

Please sign in to comment.