Skip to content

Commit

Permalink
a little cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamj1232 committed May 19, 2023
1 parent 94af6da commit 08d058a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export const APP_INITIAL_STATE: AppState = {

export const STORAGE_KEYS = {
TERMS_AGREEMENT: 'onboard.js:agreement',
LAST_CONNECTED_WALLET: 'onboard.js:last_connected_wallet',
PROTECT_ENABLED: 'web3-onboard:protect_enabled'
LAST_CONNECTED_WALLET: 'onboard.js:last_connected_wallet'
}

export const MOBILE_WINDOW_WIDTH = 768
Expand Down
6 changes: 4 additions & 2 deletions packages/core/src/views/account-center/Maximized.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@
)
enableTransactionProtection = false
} catch (error) {
const { code } = error as { code: number }
console.log(error, code)
console.error(
`There was en error or the end user rejected updating the RPC in the wallet. Error: ${error}`
)
enableTransactionProtection = false
}
}
Expand Down
12 changes: 6 additions & 6 deletions packages/demo/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -183,31 +183,31 @@
const onboard = Onboard({
wallets: [
injected,
frameWallet,
ledger,
trezor,
walletConnect,
infinityWallet,
coinbaseWallet,
phantom,
gnosis,
trust,
tallyho,
enkrypt,
infinityWallet,
mewWallet,
keepkey,
keystone,
coinbaseWallet,
magic,
fortmatic,
portis,
torus,
gnosis,
dcent,
sequence,
tallyho,
uauth,
web3auth,
zeal,
frontier,
phantom,
xdefi,
frameWallet,
cedeStore
],
transactionPreview,
Expand Down

0 comments on commit 08d058a

Please sign in to comment.