Skip to content

Conversation

technophile-04
Copy link

Fixes #17

PS : I did a minor change to the hook when initializing the state to resolve cannot read properties of null at different places :

const [provider, setProvider] = useState(() => new ethers.providers.StaticJsonRpcProvider(urlArray[0]));

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

Successfully merging this pull request may close these issues.

Use useStaticJson hook from scaffold-eth instead of using one rpc url

1 participant