Skip to content

Commit 20ae28d

Browse files
committed
fixbug No records found
1 parent de739dc commit 20ae28d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ func (c *Client) call(module, action string, param map[string]interface{}, outco
172172
err = wrapErr(err, "json unmarshal envelope")
173173
return
174174
}
175+
if envelope.Status == 0 && envelope.Message == "No records found" {
176+
return
177+
}
175178
if envelope.Status != 1 {
176179
err = fmt.Errorf("etherscan server: %s", envelope.Message)
177180
return

0 commit comments

Comments
 (0)