Skip to content

Commit

Permalink
Minor tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos committed Mar 7, 2024
1 parent 8e38ea2 commit b9a67b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (c *faucetCfg) registerRootFlags(fs *flag.FlagSet) {
&c.config.MaxSendAmount,
"send-amount",
config.DefaultMaxSendAmount,
"the static max send amount per drip(native currency)",
"the static max send amount per drip (native currency)",
)

fs.StringVar(
Expand Down
7 changes: 3 additions & 4 deletions handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,8 @@ func TestFaucet_Serve_NoFundedAccounts(t *testing.T) {
func TestFaucet_Serve_InvalidSendAmount(t *testing.T) {
t.Parallel()

var (
gasFee = std.MustParseCoin("1ugnot")
maxSendAmount = std.MustParseCoins(config.DefaultMaxSendAmount)
)
// Extract the default send amount
maxSendAmount := std.MustParseCoins(config.DefaultMaxSendAmount)

testTable := []struct {
name string
Expand All @@ -744,6 +742,7 @@ func TestFaucet_Serve_InvalidSendAmount(t *testing.T) {

var (
validAddress = crypto.MustAddressFromString("g155n659f89cfak0zgy575yqma64sm4tv6exqk99")
gasFee = std.MustParseCoin("1ugnot")

singleInvalidRequest = Request{
To: validAddress.String(),
Expand Down

0 comments on commit b9a67b4

Please sign in to comment.