Commit 772178fc authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: add web3 debug log (#3587)

parent 9f1378f6
......@@ -59,5 +59,13 @@ export function Web3Provider({ provider, jsonRpcEndpoint, children }: PropsWithC
setWeb3(priorityWeb3React)
}, [priorityWeb3React, setWeb3])
// Log web3 errors to facilitate debugging.
const error = priorityConnector.usePriorityError()
useEffect(() => {
if (error) {
console.error('web3 error:', error)
}
}, [error])
return <>{children}</>
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment