Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metamask RPC error resource unavailable #5

Open
David15111 opened this issue Nov 14, 2022 · 2 comments
Open

Metamask RPC error resource unavailable #5

David15111 opened this issue Nov 14, 2022 · 2 comments

Comments

@David15111
Copy link

David15111 commented Nov 14, 2022

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
AFDF1087-1A4A-4A97-A430-AB8004919634_1_105_c

@NLBGoncalves
Copy link

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]);

};

@salaimuniselvam-s
Copy link

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 ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants