use generic type

pull/541/head
sidhujag 2020-09-05 20:44:20 -07:00
parent 0e0407c7ef
commit af8cbf2f6f
2 changed files with 4 additions and 3 deletions

View File

@ -547,10 +547,11 @@ func formatAmountWithDecimals(a *bchain.Amount, d int) string {
return a.DecimalString(d)
}
func formatDecodeBase64(a string) string {
func formatDecodeBase64(aIn interface{}) string {
var pubData string
a := []byte(aIn)
base64Text := make([]byte, base64.StdEncoding.DecodedLen(len(a)))
n, err := base64.StdEncoding.Decode(base64Text, []byte(a))
n, err := base64.StdEncoding.Decode(base64Text, a)
if err == nil {
pubData = string(base64Text[:n])
}

View File

@ -88,7 +88,7 @@
{{- end -}}
{{- if $asset.AssetDetails.NotaryDetails -}}
<tr>
<td>Aux Fees</td>
<td>Notarization</td>
<td style="padding: 0;">
<table class="table data-table">
<tbody>