punk-wallet icon indicating copy to clipboard operation
punk-wallet copied to clipboard

add useStaticJsonRpc hook, instead of using only one rpc url

Open technophile-04 opened this issue 2 years ago • 0 comments

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

technophile-04 avatar Oct 05 '22 14:10 technophile-04