Skip to content

Commit ad1c9e4

Browse files
committed
feat: include token type to response
1 parent b500ad4 commit ad1c9e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/handlers/token_handlers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ type HolderModel struct {
2323
HolderAddress string `json:"holder_address" ch:"owner"`
2424
TokenId string `json:"token_id" ch:"token_id"`
2525
Balance string `json:"balance" ch:"balance"`
26+
TokenType string `json:"token_type" ch:"token_type"`
2627
}
2728

2829
// @Summary Get token balances of an address by type
@@ -286,5 +287,6 @@ func serializeHolder(holder common.TokenBalance) HolderModel {
286287
}
287288
return ""
288289
}(),
290+
TokenType: holder.TokenType,
289291
}
290292
}

0 commit comments

Comments
 (0)