Skip to content

Commit

Permalink
Convert byte[] to string to bypass encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
urvisavla committed Oct 24, 2023
1 parent fdc4d80 commit 29eb9cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/horizon/internal/db2/history/claimable_balances.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ type ClaimableBalance struct {
type Claimants []Claimant

func (c Claimants) Value() (driver.Value, error) {
return json.Marshal(c)
val, err := json.Marshal(c)
return string(val), err
}

func (c *Claimants) Scan(value interface{}) error {
Expand Down

0 comments on commit 29eb9cd

Please sign in to comment.