Skip to content

Commit 7a97d76

Browse files
committed
fix
1 parent a6d76b1 commit 7a97d76

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pkg/api/event_converters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (h *Handler) convertActionExtraCurrencyTransfer(t *bath.ExtraCurrencyTransf
172172
Name: "Extra Currency Transfer",
173173
Description: "", // TODO: add description
174174
Accounts: distinctAccounts(viewer, h.addressBook, &t.Sender, &t.Recipient),
175-
Value: oas.NewOptString(fmt.Sprintf("%v %v", value.String(), meta.Name)),
175+
Value: oas.NewOptString(fmt.Sprintf("%v %v", value.String(), meta.Symbol)),
176176
}
177177
return action, simplePreview
178178
}

pkg/references/extra_currency.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package references
22

3+
import "fmt"
4+
35
const DefaultExtraCurrencyDecimals = 9
46

57
type ExtraCurrencyMeta struct {
@@ -24,6 +26,7 @@ func GetExtraCurrencyMeta(id int32) ExtraCurrencyMeta {
2426
}
2527
return ExtraCurrencyMeta{
2628
Decimals: DefaultExtraCurrencyDecimals,
29+
Symbol: fmt.Sprintf("$%d", id),
2730
// TODO: add default placeholders
2831
}
2932
}

0 commit comments

Comments
 (0)