You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am using the fallback-provider. however, i find it cannot handle the query requests as documented. i have 3 providers configured and quorum is set to 1. However, the query request will fail with 1 JsonRpcProvider malfunction and 2 well functioning. that is not expected!
After digging into the source code, i find the detectNetwork function is not catching the error. i have made changes to the code, and my test has been passed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
i am using the fallback-provider. however, i find it cannot handle the query requests as documented. i have 3 providers configured and quorum is set to 1. However, the query request will fail with 1 JsonRpcProvider malfunction and 2 well functioning. that is not expected!
After digging into the source code, i find the
detectNetwork
function is not catching the error. i have made changes to the code, and my test has been passed.below is the new code
also in
checkNetworks
i let the check continue in the for loop when null network is provided
the way i initiated a FallbackProvider
Beta Was this translation helpful? Give feedback.
All reactions