diff --git a/.eslintrc.js b/.eslintrc.js
index 694e34be..a078a7f1 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -19,6 +19,7 @@ module.exports = {
{
files: ['src/**/*.js'],
parserOptions: {
+ ecmaVersion: 2020,
sourceType: 'module',
},
},
diff --git a/.gitignore b/.gitignore
index b10648c1..28ad1a70 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ node_modules
dist
.eslintcache
.DS_Store
+.worktrees
diff --git a/.nvmrc b/.nvmrc
index 3f430af8..f62f0b29 100644
--- a/.nvmrc
+++ b/.nvmrc
@@ -1 +1 @@
-v18
+v20.19.1
diff --git a/README.md b/README.md
index bb185b4a..a44155e0 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ It can be used by navigating to `/request.html?method=${METHOD}¶ms=${PARAMS}
### Setup
-- Install [Node.js](https://nodejs.org) version 16
+- Install [Node.js](https://nodejs.org) version 20.19.0 or later
- If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm use` will automatically choose the right node version for you.
- Install [Yarn v1](https://yarnpkg.com/en/docs/install)
- Run `yarn setup` to install dependencies and run any required post-install scripts
diff --git a/package.json b/package.json
index c5053de1..a67f3e62 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"version": "9.9.0",
"description": "A simple dapp used in MetaMask e2e tests.",
"engines": {
- "node": ">= 18.0.0"
+ "node": ">=20.19.0"
},
"scripts": {
"setup": "yarn install && yarn allow-scripts",
@@ -42,6 +42,7 @@
"@lavamoat/allow-scripts": "^2.5.1",
"@lavamoat/preinstall-always-fail": "^2.0.0",
"@metamask/auto-changelog": "^2.5.0",
+ "@metamask/connect-evm": "^1.4.0",
"@metamask/eslint-config": "^6.0.0",
"@metamask/eslint-config-nodejs": "^6.0.0",
"@metamask/eth-sig-util": "^7.0.1",
diff --git a/src/components/connections/connections.js b/src/components/connections/connections.js
index 431b20f5..657aeda7 100644
--- a/src/components/connections/connections.js
+++ b/src/components/connections/connections.js
@@ -31,6 +31,10 @@ export function connectionsComponent(parentContainer) {
>
SDK Connect
+