Skip to content

Commit fe1be3c

Browse files
ioedeveloperyann300
authored andcommitted
Move from ethers5
1 parent 5ebee2d commit fe1be3c

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

apps/remix-dapp/src/utils/walletConnect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createAppKit, Provider } from '@reown/appkit'
2-
import { Ethers5Adapter } from '@reown/appkit-adapter-ethers5'
2+
import { EthersAdapter } from '@reown/appkit-adapter-ethers'
33
import { mainnet, sepolia, arbitrum, arbitrumSepolia, optimism, optimismSepolia, solana, solanaTestnet, bitcoin, bitcoinTestnet, bsc, bscTestnet, polygon } from "@reown/appkit/networks"
44
import { constants } from './constants'
55
import { EventEmitter } from 'events'
@@ -27,7 +27,7 @@ export class WalletConnect {
2727

2828
constructor () {
2929
this.appkit = createAppKit({
30-
adapters: [new Ethers5Adapter()],
30+
adapters: [new EthersAdapter()],
3131
projectId: constants.PROJECT_ID,
3232
metadata: constants.METADATA,
3333
networks: [mainnet, sepolia, arbitrum, arbitrumSepolia, optimism, optimismSepolia, solana, solanaTestnet, bitcoin, bitcoinTestnet, bsc, bscTestnet, polygon]

apps/remix-ide/src/app/plugins/walletconnect/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Plugin } from '@remixproject/engine'
22
import { createAppKit, Provider } from '@reown/appkit'
3-
import { Ethers5Adapter } from '@reown/appkit-adapter-ethers5'
3+
import { EthersAdapter } from '@reown/appkit-adapter-ethers'
44
import { mainnet, sepolia, arbitrum, arbitrumSepolia, optimism, optimismSepolia, solana, solanaTestnet, bitcoin, bitcoinTestnet, bsc, bscTestnet, polygon } from "@reown/appkit/networks"
55
import { constants } from './utils/constants'
66
import { Chain, RequestArguments } from './types'
@@ -34,7 +34,7 @@ export class WalletConnect extends Plugin {
3434
onActivation() {
3535
if (!this.appkit) {
3636
this.appkit = createAppKit({
37-
adapters: [new Ethers5Adapter()],
37+
adapters: [new EthersAdapter()],
3838
projectId: constants.PROJECT_ID,
3939
metadata: constants.METADATA,
4040
networks: [mainnet, sepolia, arbitrum, arbitrumSepolia, optimism, optimismSepolia, solana, solanaTestnet, bitcoin, bitcoinTestnet, bsc, bscTestnet, polygon]

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@
128128
"@remixproject/plugin-utils": "0.3.42",
129129
"@remixproject/plugin-webview": "0.3.42",
130130
"@remixproject/plugin-ws": "0.3.42",
131-
"@reown/appkit": "^1.7.2",
132-
"@reown/appkit-adapter-ethers5": "^1.7.2",
133131
"@ricarso/react-image-magnifiers": "^1.9.0",
134132
"@types/nightwatch": "^2.3.1",
135133
"ansi-gray": "^0.1.1",

0 commit comments

Comments
 (0)