Skip to content

Commit e6423e8

Browse files
committed
fix "tokenDecimal":"" crash
1 parent 03f0213 commit e6423e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (c *Client) call(module, action string, param map[string]interface{}, outco
123123
return
124124
}
125125

126-
contentBytes = bytes.Replace(content.Bytes(), []byte(`"tokenDecimal":""`), []byte(`"tokenDecimal":"0"`), -1)
126+
contentBytes := bytes.Replace(content.Bytes(), []byte(`"tokenDecimal":""`), []byte(`"tokenDecimal":"0"`), -1)
127127
var envelope Envelope
128128
err = json.Unmarshal(contentBytes, &envelope)
129129
if err != nil {

0 commit comments

Comments
 (0)