Skip to content

add useStaticJsonRpc hook, instead of using only one rpc url#18

Open
technophile-04 wants to merge 3 commits intoscaffold-eth:masterfrom
technophile-04:fix-hardcoding-one-rpc
Open

add useStaticJsonRpc hook, instead of using only one rpc url#18
technophile-04 wants to merge 3 commits intoscaffold-eth:masterfrom
technophile-04:fix-hardcoding-one-rpc

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