Hi dfx team,
Have been having errors of “fetch root key” on the IC context. And the cause is this if on the automatically generated declarations (even on latest version it happens (v0.20.0)):
As you can see, it’s being binary on that variable. But the truth is that a network can (and should be) more custom than just those two options. In my case I have a “staging” network.
But it can be other things, like “beta”, “internal”, etc. So I strongly recommend to only check if on “local” or not, rather than the “ic”.
Let me know your feedback and if a fix is possible.
Thanks,
Tiago