Skip to content

Commit

Permalink
fix getfilterchanges return value
Browse files Browse the repository at this point in the history
  • Loading branch information
giskook committed Aug 12, 2024
1 parent ce2de04 commit fa8430f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsonrpc/endpoints_eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func (e *EthEndpoints) GetFilterChanges(filterID string) (interface{}, types.Err
return nil, rpcErr
}
if len(res) == 0 {
return nil, nil
return []common.Hash{}, nil
}
return res, nil
}
Expand All @@ -449,7 +449,7 @@ func (e *EthEndpoints) GetFilterChanges(filterID string) (interface{}, types.Err
return nil, rpcErr
}
if len(res) == 0 {
return nil, nil
return common.Hash{}, nil
}
return res, nil
}
Expand All @@ -472,7 +472,7 @@ func (e *EthEndpoints) GetFilterChanges(filterID string) (interface{}, types.Err
}
res := resInterface.([]types.Log)
if len(res) == 0 {
return nil, nil
return []types.Log{}, nil
}
return res, nil
}
Expand Down

0 comments on commit fa8430f

Please sign in to comment.