Skip to content

Commit

Permalink
fix: revert txhash label
Browse files Browse the repository at this point in the history
  • Loading branch information
iczc committed Apr 1, 2022
1 parent acbbcbe commit d50fff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
3 changes: 1 addition & 2 deletions web/src/Faucet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit d50fff3

Please sign in to comment.