punk-wallet
punk-wallet copied to clipboard
add useStaticJsonRpc hook, instead of using only one rpc url
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]));