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

ApiPromise.create doesn't resolve with the ScProvier #5816

Closed
1 of 4 tasks
josepot opened this issue Mar 12, 2024 · 3 comments
Closed
1 of 4 tasks

ApiPromise.create doesn't resolve with the ScProvier #5816

josepot opened this issue Mar 12, 2024 · 3 comments

Comments

@josepot
Copy link
Member

josepot commented Mar 12, 2024

  • I'm submitting a ...

    • Bug report
    • Feature request
    • Support request
    • Other
  • What is the current behavior and expected behavior?

Current behaviour is that the following Promise doesn't resolve:

import { ApiPromise, ScProvider } from '@polkadot/api';
import * as Sc from "@substrate/connect"

const provider = new ScProvider(Sc, Sc.WellKnownChain.polkadot)
ApiPromise.create({provider}).then(console.log, console.error)

The expected behaviour is that the promise resolves 🙂 .

@kratico
Copy link
Contributor

kratico commented Mar 12, 2024

I think this is related to smol-dot/smoldot#1694 which will be solved once #5817 is merged

@josepot
Copy link
Member Author

josepot commented Mar 12, 2024

Closing this as it seems that the latest release of substrate-connect solves this. Thanks @kratico !

@josepot josepot closed this as completed Mar 12, 2024
@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants