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

Unable to connect to local wallet (hardhat?) #22

Open
mdespault opened this issue Nov 9, 2021 · 1 comment
Open

Unable to connect to local wallet (hardhat?) #22

mdespault opened this issue Nov 9, 2021 · 1 comment

Comments

@mdespault
Copy link

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [X] question about how to use this project

  • Summary

I'm new to web3, react-native, and dapp's in general so hopefully I'm just missing a simple setup step. After running the initial setup/installation, everything looks to have completed successfully. Upon launching the "web" version of the initial hello-world app, I'm stuck with text saying "Loading..." and a "Connect a Wallet" button below that. Quickly looking through the code, I'm assuming that the WalletConnect connector isn't able to find a local wallet to connect to. I can confirm that the hardhat node is running on my localhost, I'm seeing output to the console showing that there are 10 accounts with 1000 ETH each. I'm also able to add a custom rpc with the metamask browser plugin and view my hardhat wallet. What would be the best way to debug this issue?

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

  • running on a windows machine

@cawfree
Copy link
Owner

cawfree commented Nov 17, 2021

Hmm, that's strange. Thanks very much for raising.

It'll be stuck on loading because it's failing to interact with the deployed contract (does it get deployed? can you see the interaction take place in hardhat?)

You shouldn't have to modify the example at all; can you please verify that the value exported from react-native-localhost matches the local IP address of the machine running the hardhat node?

Do you see any failures happen in the browser's network tab?

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

4 participants
@mdespault @cawfree and others