cennznet / cennznet/api.js

Unable to initialize the API: undefined is not a function

Open
#317 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
10
Forks
9
PR merge metrics
No merged PRs in 30d

Description

reports of 1.4.0 release being unable to connect with mainnet
```
Unable to initialize the API: undefined is not a function
```

Debugging shows this line may be the cause
https://github.com/polkadot-js/api/blob/033cba718d31e8bbd8b90ece99b7e9e6a7db579d/packages/api/src/base/Init.ts#L250
```js
const metadataKey = `${this._genesisHash?.toHex() || '0x'}-${runtimeVersion.specVersion.toString()}`;
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.