Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,30 @@
},
"dependencies": {
"@near-js/providers": "^1.0.1",
"@near-wallet-selector/bitte-wallet": "^8.10.0",
"@near-wallet-selector/core": "^8.10.0",
"@near-wallet-selector/ethereum-wallets": "^8.10.0",
"@near-wallet-selector/here-wallet": "^8.10.0",
"@near-wallet-selector/hot-wallet": "^8.10.0",
"@near-wallet-selector/ledger": "^8.10.0",
"@near-wallet-selector/meteor-wallet": "^8.10.0",
"@near-wallet-selector/meteor-wallet-app": "^8.10.0",
"@near-wallet-selector/modal-ui": "^8.10.0",
"@near-wallet-selector/my-near-wallet": "^8.10.0",
"@near-wallet-selector/near-mobile-wallet": "^8.10.0",
"@near-wallet-selector/nightly": "^8.10.0",
"@near-wallet-selector/react-hook": "^8.9.15",
"@near-wallet-selector/sender": "^8.10.0",
"@near-wallet-selector/welldone-wallet": "^8.10.0",
"@reown/appkit": "^1.6.9",
"@reown/appkit-adapter-wagmi": "^1.6.9",
"@near-wallet-selector/bitte-wallet": "^9.0.2",
"@near-wallet-selector/core": "^9.0.2",
"@near-wallet-selector/ethereum-wallets": "^9.0.2",
"@near-wallet-selector/here-wallet": "^9.0.2",
"@near-wallet-selector/hot-wallet": "^9.0.2",
"@near-wallet-selector/ledger": "^9.0.2",
"@near-wallet-selector/meteor-wallet": "^9.0.2",
"@near-wallet-selector/meteor-wallet-app": "^9.0.2",
"@near-wallet-selector/modal-ui": "^9.0.2",
"@near-wallet-selector/my-near-wallet": "^9.0.2",
"@near-wallet-selector/near-mobile-wallet": "^9.0.2",
"@near-wallet-selector/nightly": "^9.0.2",
"@near-wallet-selector/react-hook": "^9.0.2",
"@near-wallet-selector/sender": "^9.0.2",
"@near-wallet-selector/welldone-wallet": "^9.0.2",
"@reown/appkit": "^1.7.7",
"@reown/appkit-adapter-wagmi": "^1.7.7",
"@wagmi/core": "^2.17.2",
"bootstrap": "^5",
"bootstrap-icons": "^1.11.3",
"near-api-js": "^5.0.1",
"next": "15.2.1",
"react": "^18",
"react-dom": "^18"
"react-dom": "^18",
"viem": "^2.30.5"
},
"devDependencies": {
"encoding": "^0.1.13",
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/wallets/web3modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,12 @@ export const web3Modal = createAppKit({
socials: false, // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
},
coinbasePreference: "eoaOnly", // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
allWallets: "SHOW",
});

// force reconnecting if the user has already signed in with an ethereum wallet
// this is a workaround until `ethereum-wallets` supports the `reconnect` method
if (typeof window !== "undefined") {
const recentWallets = localStorage.getItem("near-wallet-selector:recentlySignedInWallets");
recentWallets && recentWallets.includes("ethereum-wallets") && reconnect(wagmiAdapter.wagmiConfig)
}
Loading