Skip to content

Commit

Permalink
Added debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
begmaroman committed Mar 20, 2024
1 parent bf52c53 commit 5bcc16a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ func (c *client) ListOffChainData(ctx context.Context, hashes []common.Hash) (ma
}

result := make(map[common.Hash]types.ArgBytes)
fmt.Println(string(response.Result))
if err = json.Unmarshal(response.Result, &result); err != nil {
return nil, err
}

fmt.Println("result:", string(response.Result))
fmt.Printf("result: %v\n", result)

return result, nil
}

0 comments on commit 5bcc16a

Please sign in to comment.