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
When using window.adena.SwitchNetwork(chainId), if we are already connected to the same network the returned object is the following:
{
"status": "failure",
"data": {
"chainId": "dev"
},
"code": 4001,
"message": "Unable to change to the current network.",
"type": "REDUNDANT_CHANGE_REQUEST"
}
Which isn't logical, as the end result is that we are on the requested network.
It should have a success status and a successful message imo, and keeping this type if it can be useful to the application to known that it was already on the right network.
The text was updated successfully, but these errors were encountered:
When using
window.adena.SwitchNetwork(chainId)
, if we are already connected to the same network the returned object is the following:Which isn't logical, as the end result is that we are on the requested network.
It should have a
success
status and a successful message imo, and keeping this type if it can be useful to the application to known that it was already on the right network.The text was updated successfully, but these errors were encountered: