Skip to content

Commit 7cbdd7f

Browse files
committed
fixed 0 faucet balance and proxy
1 parent 6747423 commit 7cbdd7f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

client/src/components/FaucetForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const FaucetForm = (props: any) => {
9595
async function updateBalance() {
9696
const response = await props.axios.get(props.config.api.getBalance, {params: {chain: chainConfigs[chain!]?.ID}});
9797

98-
if(response?.data) {
98+
if(response?.data || response?.data == 0) {
9999
setBalance(response?.data);
100100
}
101101
}

config.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"GLOBAL_RL": {
33
"ID": "GLOBAL",
44
"RATELIMIT": {
5-
"REVERSE_PROXIES": 3,
5+
"REVERSE_PROXIES": 4,
66
"MAX_LIMIT": 40,
77
"WINDOW_SIZE": 1,
88
"PATH": "/",
@@ -17,7 +17,7 @@
1717
"RPC": "https://api.avax-test.network/ext/C/rpc",
1818
"CHAINID": 43113,
1919
"EXPLORER": "https://testnet.snowtrace.io",
20-
"IMAGE": "https://notify.avax.network/favicon.svg",
20+
"IMAGE": "https://raw.githubusercontent.com/ava-labs/avalanche-faucet/main/client/public/avax.webp",
2121
"MAX_PRIORITY_FEE": "2000000000",
2222
"MAX_FEE": "100000000000",
2323
"DRIP_AMOUNT": 10000000000,
@@ -34,7 +34,7 @@
3434
"RPC": "https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc",
3535
"CHAINID": 11111,
3636
"EXPLORER": "https://subnets.avax.network/wagmi/wagmi-chain-testnet/explorer",
37-
"IMAGE": "https://raw.githubusercontent.com/ava-labs/subnet-evm/master/imgs/wagmi.png",
37+
"IMAGE": "https://raw.githubusercontent.com/ava-labs/avalanche-faucet/main/client/public/wagmi.png",
3838
"MAX_PRIORITY_FEE": "2000000000",
3939
"MAX_FEE": "100000000000",
4040
"DRIP_AMOUNT": 10000000,
@@ -44,4 +44,4 @@
4444
}
4545
}
4646
]
47-
}
47+
}

0 commit comments

Comments
 (0)