Skip to content

Commit

Permalink
protocols/horizon: Make the ClawbackClaimableBalanceOp ID a required …
Browse files Browse the repository at this point in the history
…string (#3540)
  • Loading branch information
Shaptic authored Apr 15, 2021
1 parent 23dc177 commit fcd228f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protocols/horizon/operations/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ type Clawback struct {
// ClawbackClaimableBalance.
type ClawbackClaimableBalance struct {
Base
ClaimableBalanceID *string `json:"balance_id,omitempty"`
BalanceID string `json:"balance_id"`
}

// SetTrustLineFlags is the json resource representing a single operation whose type is
Expand Down
2 changes: 1 addition & 1 deletion services/horizon/internal/integration/protocol16_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func TestHappyClawbackClaimableBalance(t *testing.T) {
tt.NoError(err)
if tt.Len(opDetailsResponse.Embedded.Records, 1) {
clawbackOp := opDetailsResponse.Embedded.Records[0].(operations.ClawbackClaimableBalance)
tt.Equal(cbID, *clawbackOp.ClaimableBalanceID)
tt.Equal(cbID, clawbackOp.BalanceID)
}

// Check the operation effects
Expand Down

0 comments on commit fcd228f

Please sign in to comment.