diff --git a/src/sdk/utils/faucet.test.ts b/src/sdk/utils/faucet.test.ts index ef3d4825..3e8d5c26 100644 --- a/src/sdk/utils/faucet.test.ts +++ b/src/sdk/utils/faucet.test.ts @@ -78,7 +78,7 @@ describe("useFaucet", () => { test("should request funds from faucet with default amounts", async () => { await useFaucet({ address, chain, grecaptcha }) - const expectedCoins = ["11000000unibi", "100000000unusd", "100000000uusdt"] + const expectedCoins = ["10000000unibi"] expect(fetch).toHaveBeenCalledWith(expectedUrl, { method: "POST", @@ -91,10 +91,9 @@ describe("useFaucet", () => { }) test("should request funds from faucet with custom amounts", async () => { - const amts = { nibi: 5, nusd: 50, usdt: 50 } - await useFaucet({ address, chain, amts, grecaptcha }) + await useFaucet({ address, chain, grecaptcha }) - const expectedCoins = ["5000000unibi", "50000000unusd", "50000000uusdt"] + const expectedCoins = ["10000000unibi"] expect(fetch).toHaveBeenCalledWith(expectedUrl, { method: "POST", diff --git a/src/sdk/utils/faucet.ts b/src/sdk/utils/faucet.ts index afa589ea..2c561efc 100644 --- a/src/sdk/utils/faucet.ts +++ b/src/sdk/utils/faucet.ts @@ -2,33 +2,18 @@ import { fetch } from "cross-fetch" import { Chain, chainToParts } from "." /** - * Sends 11 NIBI, 100 NUSD, and 100 USDT to the given address from the testnet faucet. + * Sends 10 NIBI to the given address from the testnet faucet. */ export async function useFaucet({ address, chain, - amts, grecaptcha, }: { address: string chain: Chain - amts?: { nibi: number; nusd: number; usdt: number } grecaptcha: string }): Promise { - if (!amts) { - // default values - amts = { - nibi: 11, - nusd: 100, - usdt: 100, - } - } - - const coins: string[] = [ - `${amts.nibi * 1e6}unibi`, - `${amts.nusd * 1e6}unusd`, - `${amts.usdt * 1e6}uusdt`, - ] + const coins: string[] = [`${10e6}unibi`] const faucetUrl = faucetUrlFromChain(chain) // Execute faucet request