diff --git a/internal/server/server.go b/internal/server/server.go index ee1b494..b4b29b9 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -116,7 +116,7 @@ func (s *Server) handleClaim() http.HandlerFunc { "txHash": txHash, "address": address, }).Info("Funded directly successfully") - fmt.Fprintf(w, txHash.String()) + fmt.Fprintf(w, "Txhash: %s", txHash) } } diff --git a/web/src/Faucet.svelte b/web/src/Faucet.svelte index 43cf1b7..63d277a 100644 --- a/web/src/Faucet.svelte +++ b/web/src/Faucet.svelte @@ -39,8 +39,7 @@ method: 'POST', body: formData, }); - let resp = await res.text(); - let message = res.ok ? `Txhash: ${resp}` : resp; + let message = await res.text(); let type = res.ok ? 'is-success' : 'is-warning'; toast({ message, type }); }