Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
coolestowl committed Jul 19, 2024
1 parent 5a42fd3 commit bd0f372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (c *Client) call(module, action string, param map[string]interface{}, outco
fixedContent := bytes.ReplaceAll(content.Bytes(), []byte(`"transactionIndex":""`), []byte(`"transactionIndex":"0"`))

var envelope Envelope
err = json.Unmarshal(content.Bytes(), &envelope)
err = json.Unmarshal(fixedContent, &envelope)
if err != nil {
err = wrapErr(err, "json unmarshal envelope")
return
Expand Down

0 comments on commit bd0f372

Please sign in to comment.