Skip to content
Snippets Groups Projects
Unverified Commit bbd89929 authored by Ching-Hua (Vivian) Lin's avatar Ching-Hua (Vivian) Lin Committed by GitHub
Browse files

fix: Show the minted color of balances (#652)

parent 82d4b6bb
No related branches found
No related tags found
No related merge requests found
......@@ -146,10 +146,15 @@ func processValuePayload(p payload.Payload) (vp ValuePayload) {
// Get outputs address and balance
v.Transaction().Outputs().ForEach(func(address address.Address, balances []*balance.Balance) bool {
var b []Balance
for _, balance := range balances {
for _, bal := range balances {
color := bal.Color.String()
if bal.Color == balance.ColorNew {
color = v.Transaction().ID().String()
}
b = append(b, Balance{
Value: balance.Value,
Color: balance.Color.String(),
Value: bal.Value,
Color: color,
})
}
t := OutputContent{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment