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

The example app is out of date #19

Open
Amy-Centrality opened this issue Apr 15, 2021 · 0 comments
Open

The example app is out of date #19

Amy-Centrality opened this issue Apr 15, 2021 · 0 comments

Comments

@Amy-Centrality
Copy link
Contributor

The example app in here https://wiki.cennz.net/#/Dapp-development/Examples/Example-demo-app isn't functional
The repository is here https://github.com/cennznet/api-example-app

Steps to reproduce:

  • Follow the steps to set up and run a dev chain
  • Run node index.js balances

Expected result:
Show balances

Actual result:
Connecting to ws://localhost:9944 2021-04-15 16:09:18 RPC-CORE: getMetadata(at?: BlockHash): Metadata:: createType(Metadata):: Unable to create Enum via index 12, in V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11 2021-04-15 16:09:18 API/DECORATOR: Error: FATAL: Unable to initialize the API: getMetadata(at?: BlockHash): Metadata:: createType(Metadata):: Unable to create Enum via index 12, in V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11 at EventEmitter.Init._onProviderConnect (/Users/amy/Documents/repos/playground/api-example-app/node_modules/@polkadot/api/base/Init.js:55:23) at processTicksAndRejections (internal/process/task_queues.js:93:5) Error: Error: Connection fail at EventEmitter.rejectError (/Users/amy/Documents/repos/playground/api-example-app/node_modules/@cennznet/api/Api.js:42:16) at EventEmitter.emit (/Users/amy/Documents/repos/playground/api-example-app/node_modules/eventemitter3/index.js:202:33) at Api.emit (/Users/amy/Documents/repos/playground/api-example-app/node_modules/@polkadot/api/base/Events.js:21:31) at EventEmitter.Init._onProviderConnect (/Users/amy/Documents/repos/playground/api-example-app/node_modules/@polkadot/api/base/Init.js:57:14) at processTicksAndRejections (internal/process/task_queues.js:93:5)

Note this app also mentions it's a PlugNet API example app, and a better readme

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