Skip to content

Commit 08d058a

Browse files
committed
a little cleanup
1 parent 94af6da commit 08d058a

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

packages/core/src/constants.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ export const APP_INITIAL_STATE: AppState = {
3232

3333
export const STORAGE_KEYS = {
3434
TERMS_AGREEMENT: 'onboard.js:agreement',
35-
LAST_CONNECTED_WALLET: 'onboard.js:last_connected_wallet',
36-
PROTECT_ENABLED: 'web3-onboard:protect_enabled'
35+
LAST_CONNECTED_WALLET: 'onboard.js:last_connected_wallet'
3736
}
3837

3938
export const MOBILE_WINDOW_WIDTH = 768

packages/core/src/views/account-center/Maximized.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@
4545
)
4646
enableTransactionProtection = false
4747
} catch (error) {
48-
const { code } = error as { code: number }
49-
console.log(error, code)
48+
console.error(
49+
`There was en error or the end user rejected updating the RPC in the wallet. Error: ${error}`
50+
)
51+
enableTransactionProtection = false
5052
}
5153
}
5254

packages/demo/src/App.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,31 +183,31 @@
183183
const onboard = Onboard({
184184
wallets: [
185185
injected,
186-
frameWallet,
187186
ledger,
188187
trezor,
189188
walletConnect,
190-
infinityWallet,
189+
coinbaseWallet,
190+
phantom,
191+
gnosis,
191192
trust,
193+
tallyho,
192194
enkrypt,
195+
infinityWallet,
193196
mewWallet,
194197
keepkey,
195198
keystone,
196-
coinbaseWallet,
197199
magic,
198200
fortmatic,
199201
portis,
200202
torus,
201-
gnosis,
202203
dcent,
203204
sequence,
204-
tallyho,
205205
uauth,
206206
web3auth,
207207
zeal,
208208
frontier,
209-
phantom,
210209
xdefi,
210+
frameWallet,
211211
cedeStore
212212
],
213213
transactionPreview,

0 commit comments

Comments
 (0)