Skip to content

Commit bbf3e49

Browse files
author
lizekun
committed
remove print call url
1 parent 4160acb commit bbf3e49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ func (c *Client) call(module, action string, param map[string]interface{}, outco
132132
err = fmt.Errorf("etherscan server: %s", envelope.Error.Message)
133133
return
134134
}
135+
if envelope.Result == nil {
136+
err = fmt.Errorf("null result")
137+
return
138+
}
135139

136140
err = json.Unmarshal(envelope.Result, outcome)
137141
if err != nil {

0 commit comments

Comments
 (0)