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

Wallet Crashes when Collectible's underlying contract doesn't exist #2978

Open
Caruso33 opened this issue Nov 18, 2022 · 0 comments
Open

Wallet Crashes when Collectible's underlying contract doesn't exist #2978

Caruso33 opened this issue Nov 18, 2022 · 0 comments

Comments

@Caruso33
Copy link

Problem
The wallets ( testnet.mynearwallet.com & wallet.testnet.near.org) crash when it looks for collectibles which underlying contract doesn't exist anymore:

Failed to load NFT for demo_project_test12.part_factory.groundone.testnet Error: [-32000] Server error: account demo_project_test12.part_factory.groundone.testnet does not exist while viewing
    at json-rpc-provider.js:329:31
    at async Object.e [as default] (exponential-backoff.js:7:1)
    at async y.sendJsonRpc (json-rpc-provider.js:304:15)
    at async y.query (json-rpc-provider.js:116:13)
    at async A.viewFunction (account.js:386:15)

It results in a blank page. The wallet crashes completely.

Expected Behavior
I guess skip collectibles which can't be queried from the original contract.

Steps to reproduce

  1. Create a nft contract
  2. Mint tokens on address
  3. Delete contract account
  4. Check your wallet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant