Skip to content

Commit 7baf2cc

Browse files
committed
feat(app): enable keplr/leap evm
1 parent 1e633cb commit 7baf2cc

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

app2/src/lib/wallet/evm/config.svelte.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ class SepoliaStore {
204204

205205
export const sepoliaStore = new SepoliaStore()
206206

207-
const excludeWalletList = ["io.leapwallet.LeapWallet", "app.keplr"]
207+
// Exclude wallet list, example ["io.leapwallet.LeapWallet", "app.keplr"]
208+
const excludeWalletList: string[] = []
208209

209210
export const evmWalletsInformation = getWagmiConfig()
210211
.connectors.map(connector => {
@@ -216,6 +217,8 @@ export const evmWalletsInformation = getWagmiConfig()
216217
? "Safe Wallet"
217218
: name.includes("injected")
218219
? "Browser Wallet"
220+
: name.includes("leap") || id.includes("leap")
221+
? "Leap"
219222
: connector.name,
220223
icon: (id.includes("walletconnect")
221224
? "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23268fff' d='M4.91 7.52a10.18 10.18 0 0 1 14.18 0l.47.46a.48.48 0 0 1 0 .7l-1.61 1.57a.25.25 0 0 1-.36 0l-.65-.63a7.1 7.1 0 0 0-9.88 0l-.7.68a.26.26 0 0 1-.35 0L4.4 8.72a.48.48 0 0 1 0-.7zm17.5 3.26 1.44 1.4a.48.48 0 0 1 0 .7l-6.46 6.33a.51.51 0 0 1-.71 0l-4.59-4.5a.13.13 0 0 0-.18 0l-4.59 4.5a.51.51 0 0 1-.7 0L.14 12.88a.48.48 0 0 1 0-.7l1.43-1.4a.51.51 0 0 1 .71 0l4.59 4.5c.05.04.13.04.18 0l4.59-4.5a.51.51 0 0 1 .7 0l4.6 4.5c.04.04.12.04.17 0l4.6-4.5a.5.5 0 0 1 .7 0' /%3E%3C/svg%3E%0A"

app2/src/lib/wallet/evm/wagmi-config.svelte.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,6 @@ function createWagmiConfigInstance() {
211211
shimDisconnect: true,
212212
unstable_shimAsyncInject: 2_500,
213213
}),
214-
coinbaseWallet({
215-
darkMode: true,
216-
appName: uiStore.appInfo.name,
217-
appLogoUrl: uiStore.appInfo.iconUrl,
218-
enableMobileWalletLink: true,
219-
}),
220214
metaMask({
221215
injectProvider: true,
222216
dappMetadata: {
@@ -226,6 +220,12 @@ function createWagmiConfigInstance() {
226220
},
227221
useDeeplink: true,
228222
}),
223+
coinbaseWallet({
224+
darkMode: true,
225+
appName: uiStore.appInfo.name,
226+
appLogoUrl: uiStore.appInfo.iconUrl,
227+
enableMobileWalletLink: true,
228+
}),
229229
safe({
230230
allowedDomains: [
231231
/gnosis-safe.io$/,

0 commit comments

Comments
 (0)