other web3modal change

This commit is contained in:
2026-01-07 13:52:37 -04:00
parent 069fb31f82
commit 2bda184bba
2 changed files with 15 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ const ethersConfig = defaultConfig({
icons: ['https://your-icon-url.com'] icons: ['https://your-icon-url.com']
}, },
defaultChainId: 42161, defaultChainId: 42161,
enableEIP6963: true, // Disable to prevent wallets from auto-announcing enableEIP6963: false, // Disable to prevent wallets from auto-announcing
enableInjected: true, enableInjected: true,
enableCoinbase: true, enableCoinbase: true,
rpcUrl: 'https://arbitrum-mainnet.infura.io' rpcUrl: 'https://arbitrum-mainnet.infura.io'
@@ -50,15 +50,4 @@ export const web3modal = createWeb3Modal({
featuredWalletIds: [ featuredWalletIds: [
'c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96' // MetaMask 'c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96' // MetaMask
], ],
enableWalletGuide: false,
termsConditionsUrl: undefined,
privacyPolicyUrl: undefined
})
// Subscribe to modal state changes
web3modal.subscribeState((state) => {
console.log('Web3Modal state:', state)
if (state.open === false && state.selectedNetworkId) {
console.log('Modal closed after connection')
}
}) })

View File

@@ -28,8 +28,8 @@
</div> </div>
<v-card-actions v-if="status>Status.NEEDS_PLUGIN"> <v-card-actions v-if="status>Status.NEEDS_PLUGIN">
<btn v-if="pluginOk" icon="mdi-wallet-outline" color="warning" variant="outlined" <btn v-if="pluginOk" icon="mdi-wallet-outline" color="green-accent-4" variant="flat"
@click="connect" :disabled="disabled" text="Connect Wallet"/> @click="connect" :disabled="disabled" text="Connect Wallet" class="connect-wallet-btn"/>
</v-card-actions> </v-card-actions>
</v-card> </v-card>
@@ -87,4 +87,16 @@ async function connect() {
#manualsetup tr td:last-child { #manualsetup tr td:last-child {
padding-left: 1em; padding-left: 1em;
} }
:deep(.connect-wallet-btn) {
background-color: #00ff41 !important;
color: #000 !important;
font-weight: 600;
box-shadow: 0 0 8px rgba(0, 255, 65, 0.3) !important;
}
:deep(.connect-wallet-btn:hover) {
background-color: #00cc34 !important;
box-shadow: 0 0 12px rgba(0, 255, 65, 0.4) !important;
}
</style> </style>