other web3modal change
This commit is contained in:
@@ -35,7 +35,7 @@ const ethersConfig = defaultConfig({
|
||||
icons: ['https://your-icon-url.com']
|
||||
},
|
||||
defaultChainId: 42161,
|
||||
enableEIP6963: true, // Disable to prevent wallets from auto-announcing
|
||||
enableEIP6963: false, // Disable to prevent wallets from auto-announcing
|
||||
enableInjected: true,
|
||||
enableCoinbase: true,
|
||||
rpcUrl: 'https://arbitrum-mainnet.infura.io'
|
||||
@@ -50,15 +50,4 @@ export const web3modal = createWeb3Modal({
|
||||
featuredWalletIds: [
|
||||
'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')
|
||||
}
|
||||
})
|
||||
@@ -28,8 +28,8 @@
|
||||
</div>
|
||||
|
||||
<v-card-actions v-if="status>Status.NEEDS_PLUGIN">
|
||||
<btn v-if="pluginOk" icon="mdi-wallet-outline" color="warning" variant="outlined"
|
||||
@click="connect" :disabled="disabled" text="Connect Wallet"/>
|
||||
<btn v-if="pluginOk" icon="mdi-wallet-outline" color="green-accent-4" variant="flat"
|
||||
@click="connect" :disabled="disabled" text="Connect Wallet" class="connect-wallet-btn"/>
|
||||
</v-card-actions>
|
||||
|
||||
</v-card>
|
||||
@@ -87,4 +87,16 @@ async function connect() {
|
||||
#manualsetup tr td:last-child {
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user