diff --git a/tools/walletextension/api/routes.go b/tools/walletextension/api/routes.go index 197ae64850..2ef79d592f 100644 --- a/tools/walletextension/api/routes.go +++ b/tools/walletextension/api/routes.go @@ -156,9 +156,9 @@ func ethRequestHandler(walletExt *walletextension.WalletExtension, conn userconn return } - // Get userID + // Get userID and check if user exists (if not - use default user) hexUserID, err := getQueryParameter(conn.ReadRequestParams(), common.UserQueryParameter) - if err != nil { + if err != nil || !walletExt.UserExists(hexUserID) { walletExt.Logger().Error(fmt.Errorf("user not found in the query params: %w. Using the default user", err).Error()) hexUserID = hex.EncodeToString([]byte(common.DefaultUser)) // todo (@ziga) - this can be removed once old WE endpoints are removed } diff --git a/tools/walletextension/api/staticOG/Metamask Network Icon.png b/tools/walletextension/api/staticOG/Metamask Network Icon.png new file mode 100644 index 0000000000..1e966077f8 Binary files /dev/null and b/tools/walletextension/api/staticOG/Metamask Network Icon.png differ diff --git a/tools/walletextension/api/staticOG/index.html b/tools/walletextension/api/staticOG/index.html index 04bf159a86..716e07416a 100644 --- a/tools/walletextension/api/staticOG/index.html +++ b/tools/walletextension/api/staticOG/index.html @@ -4,7 +4,8 @@
Accounts | +Added to Obscuro Gateway | +
---|