("5");
+
+ useEffect(() => {
+ if (wallet && !receiverAddress) {
+ setReceiverAddress(wallet.address.toB256());
+ }
+ }, [wallet]);
const sendFunds = async () => {
if (!faucetWallet) {
@@ -43,23 +51,29 @@ export default function Faucet() {
Local Faucet
- Receiving address:
+
setReceiverAddress(e.target.value)}
placeholder="0x..."
+ id="receiver-address-input"
/>
- Amount (ETH):
+
setAmountToSend(e.target.value ?? undefined)}
placeholder="5"
type="number"
+ id="amount-input"
/>