Commit 3d4b077b authored by a6Ce6Bs's avatar a6Ce6Bs Committed by GitHub

fix: networkProvider error (#4674)

parent 0f4a89d9
......@@ -33,12 +33,12 @@ function Tracer() {
if (shouldTrace) {
provider?.on('debug', trace)
if (provider !== networkProvider) {
networkProvider.on('debug', trace)
networkProvider?.on('debug', trace)
}
}
return () => {
provider?.off('debug', trace)
networkProvider.off('debug', trace)
networkProvider?.off('debug', trace)
}
}, [networkProvider, provider, shouldTrace])
......
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