Skip to content

Commit

Permalink
Revert "refactor: adding grecaptcha to useFaucet v21 (#199)"
Browse files Browse the repository at this point in the history
This reverts commit 17c8039.
  • Loading branch information
CalicoNino authored Aug 11, 2023
1 parent 17c8039 commit b770c4b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/nibijs/src/chain/useFaucet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ export async function useFaucet({
address,
chain,
amts,
grecaptcha,
}: {
address: string
chain: Chain
amts?: { nibi: number; nusd: number; usdt: number }
grecaptcha: string
}): Promise<Response> {
if (!amts) {
// default values
Expand All @@ -32,7 +30,7 @@ export async function useFaucet({

// Execute faucet request
console.info(
`Requesting funds from faucet @ ${faucetUrl}:
`Requesting funds from faucet @ ${faucetUrl}:
Coins: ${coins}
Address: ${address}
`
Expand All @@ -45,7 +43,7 @@ export async function useFaucet({
Accept: "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({ address, coins, grecaptcha }),
body: JSON.stringify({ address, coins }),
})
.catch((err) => {
console.error(err)
Expand Down

0 comments on commit b770c4b

Please sign in to comment.