Skip to content

Commit

Permalink
Replace null characters with __NULL__
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkvi committed May 23, 2024
1 parent 374eab9 commit 8d0e929
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node/remote/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ func (cp *Node) Tx(hash string) (*types.Transaction, error) {
if err != nil {
return nil, err
}

result.TxResult.Log = strings.ReplaceAll(result.TxResult.Log, "\\u0000", "__NULL__")
logs, err := sdk.ParseABCILogs(result.TxResult.Log)
if err != nil {
cp.client.Logger.Error("failed to parse ABCI logs", "err", err)
Expand Down

0 comments on commit 8d0e929

Please sign in to comment.