Skip to content

Commit

Permalink
return nil if no data or empty string (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Honglei-Cong authored Aug 11, 2020
1 parent 91453aa commit c7256fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func (this *ClientMgr) GetSmartContractEventByBlock(height uint32) ([]*sdkcom.Sm
if err != nil {
return nil, err
}
if data == nil || string(data) == "" {
if data == nil || string(data) == "" || string(data) == "\"\""{
return nil, nil
}
return utils.GetSmartContactEvents(data)
Expand Down

0 comments on commit c7256fa

Please sign in to comment.