project_web3_battle_game
project_web3_battle_game copied to clipboard
Metamask RPC error resource unavailable
uncaught ( in promise ) code 32002 index.jsx :21
i tried 7-8 time in last 10 days and getting stucked due to them aftr exactly 1 hour of video
i mean i type test but it continue sho0w me isplayer is not a function tried almost everything
Hi! will change the "eth_requestAccounts" to "eth_accounts". And it will look like this:
const updateCurrentWalletAddress = async () => { const accounts = await window?.ethereum?.request({ method: 'eth_accounts' });
if(accounts) setWalletAddress(accounts[0]);
};
Hi! will change the "eth_requestAccounts" to "eth_accounts". And it will look like this:
const updateCurrentWalletAddress = async () => { const accounts = await window?.ethereum?.request({ method: 'eth_accounts' });
if(accounts) setWalletAddress(accounts[0]);
};
Thanks it fixed my issue ..