Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One of the specified object stores was not found #2272

Open
1 task done
mj-dcb opened this issue Aug 16, 2024 · 0 comments
Open
1 task done

One of the specified object stores was not found #2272

mj-dcb opened this issue Aug 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mj-dcb
Copy link

mj-dcb commented Aug 16, 2024

Current Behavior

When a user tries to connect with the app via Walletconnect they receive a frontend error "Uncaught (in promise) DOMException: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found."

When we run the Next.js app locally, it works perfectly fine. We have cleared the cache and tried to use it in incognito but that didn't solve the issue.

Expected Behavior

It should show you the modal where u can choose a wallet to connect with.

Steps To Reproduce

  1. Install the following packages:
    "@web3-onboard/core": "^2.22.2",
    "@web3-onboard/walletconnect": "^2.6.1",
  2. Use the following code to initialize the package:
const wallet_connect = walletConnectModule({
   projectId: WC_PID,
   version: 2,
   requiredChains: CHAIN_IDS,
});

const web3onboard = init({
   wallets: [injected, ledger, wallet_connect, gnosis, trust],
   chains: CHAIN_IDS.map((id) => ({
       id: '0x' + id.toString(16),
       token: NETWORKS[id].symbol,
       label: NETWORKS[id].network_name,
       rpcUrl: getRPCUrl(id),
   })),
   appMetadata: {
       name: `${COMPANY_NAME} staking`,
       logo: ONBOARD_LOGO || COMPANY_LOGO,
       description: `The official ${COMPANY_NAME} staking platform.`,
       recommendedInjectedWallets: [
           { name: 'MetaMask', url: 'https://metamask.io' },
       ],
   },
   accountCenter: {
       desktop: { enabled: false, containerElement: 'body' },
       mobile: { enabled: false, containerElement: 'body' },
   },
});
  1. Use the wallet connector and select Walletconnect

What package is effected by this issue?

@web3-onboard/walletconnect

Is this a build or a runtime issue?

Runtime

Package Version

2.6.1

Node Version

18.x

What browsers are you seeing the problem on?

No response

Relevant log output

Uncaught (in promise) DOMException: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.

The code:
        function createStore(o, s) {
            let a = indexedDB.open(o);
            a.onupgradeneeded = ()=>a.result.createObjectStore(s);
            let u = promisifyRequest(a);
            return (o,a)=>u.then(u=>a(u.transaction(s, o).objectStore(s)))
        }
        function defaultGetStore() {
            return u || (u = createStore("keyval-store", "keyval")),
            u
        }

Anything else?

No response

Sanity Check

  • If this is a build issue, I have included my build config. If this is a runtime issue, I have included reproduction steps and/or a Minimal, Reproducible Example.
@mj-dcb mj-dcb added the bug Something isn't working label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants