Skip to content

Commit

Permalink
👌 Applied suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
nagdahimanshu committed Jul 5, 2024
1 parent ab547bc commit 227f866
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ The following are the available command-line flags(excluding above wallet flags)
| -faucet.minutes | Number of minutes to wait between funding rounds | 10080 (1 week) |
| -faucet.name | Network name to display on the frontend | sepolia |
| -faucet.symbol | Token symbol to display on the frontend | LSK |
| -explorer.url | Block Explorer URL | https://sepolia-blockscout.lisk.com |
| -explorer.tx.path | Block explorer transaction path | tx |
| -explorer.url | Block explorer URL | https://sepolia-blockscout.lisk.com |
| -explorer.tx.path | Block explorer transaction path fragment | tx |
| -hcaptcha.sitekey | hCaptcha sitekey | |
| -hcaptcha.secret | hCaptcha secret | |

Expand Down
2 changes: 1 addition & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var (
symbolFlag = flag.String("faucet.symbol", "LSK", "Token symbol to display on the frontend")

explorerURL = flag.String("explorer.url", "https://sepolia-blockscout.lisk.com", "Block explorer URL")
explorerTxPath = flag.String("explorer.tx.path", "tx", "Block explorer transaction path")
explorerTxPath = flag.String("explorer.tx.path", "tx", "Block explorer transaction path fragment")

keyJSONFlag = flag.String("wallet.keyjson", os.Getenv("KEYSTORE"), "Keystore file to fund user requests with")
keyPassFlag = flag.String("wallet.keypass", "password.txt", "Passphrase text file to decrypt keystore")
Expand Down
2 changes: 1 addition & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (s *Server) handleClaim() http.HandlerFunc {
"txHash": txHash,
"address": address,
}).Info("Transaction sent successfully")
resp := claimResponse{Message: fmt.Sprintf("Txhash: %s", txHash)}
resp := claimResponse{Message: fmt.Sprintf("txhash: %s", txHash)}
renderJSON(w, resp, http.StatusOK)
}
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/Faucet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
});
let { msg } = await res.json();
if (msg.includes('Txhash')) {
if (msg.includes('txhash')) {
const txHash = msg.split(' ')[1];
txURL = `${faucetInfo.explorer_url}/${faucetInfo.explorer_txPath}/${txHash}`;
} else {
Expand Down

0 comments on commit 227f866

Please sign in to comment.