Skip to content

Commit cf969ea

Browse files
committed
Fix faucet funding for tallinnnet by using VITE_NETWORK_NAME
The fund-test-wallet script was reading VITE_NETWORK_TYPE, which is "custom" for tallinnnet. The @tacoinfra/get-tez faucet needs the actual network name to look up in teztnets.com. Fall back to VITE_NETWORK_TYPE for environments where NETWORK_NAME isn't set.
1 parent 253d015 commit cf969ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scripts/fund-test-wallet.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ const getAccountBalance = async (address: string): Promise<number> => {
2929
};
3030

3131
const fundAccount = async (address: string, amount: number) => {
32-
const network = process.env.VITE_NETWORK_TYPE;
32+
const network =
33+
process.env.VITE_NETWORK_NAME || process.env.VITE_NETWORK_TYPE;
3334

3435
if (!network) {
3536
throw new Error(`Received invalid network: ${network}`);

0 commit comments

Comments
 (0)