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

@polkadot/metadata conflicts #255

Open
jordy25519 opened this issue Dec 17, 2020 · 0 comments
Open

@polkadot/metadata conflicts #255

jordy25519 opened this issue Dec 17, 2020 · 0 comments

Comments

@jordy25519
Copy link
Contributor

jordy25519 commented Dec 17, 2020

Simply using @polkadot/api as a dependency in a project with @cennznet/api seems to cause type decoding issues at runtime.

By setting a common version for @polkadot/metadata it fixes the issues

{
  //..
  "dependencies": {
    "@cennznet/api": "^1.3.2",
    "@polkadot/api": "^2.7.1"
  },
  "resolutions": {
    "@polkadot/metadata": "2.7.1"
  }
  // ..
}

simple initialization fails:

// test.js
const { Api, WsProvider } = require('@cennznet/api');

let provider = new WsProvider('ws://example.com:9944');

Not sure this is a true bug but leaving here as reference

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