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

api.consts.{pallet}.{constant} access not working #21

Open
emostov opened this issue Nov 12, 2020 · 0 comments
Open

api.consts.{pallet}.{constant} access not working #21

emostov opened this issue Nov 12, 2020 · 0 comments

Comments

@emostov
Copy link

emostov commented Nov 12, 2020

relates to #20 and paritytech/substrate-api-sidecar#329

I found that accessing constants through the polkadot-js API yields errors complaining that the pallet portion in api.consts.{pallet}.{constant} is undefined. For example

console.log(api.consts.proxy.maxPending);

yields the error:

TypeError: Cannot read property 'maxPending' of undefined

I have a bare bones repo to reproduce the issue so dependencies and tsc config are clear. See: https://github.com/emostov/edgeware-types/blob/cd9116c50c7cea80aad27e4d67ec7482c9a20c33/src/main.ts#L23

I got this error while running against a v3.1.0 local node run with the command: ./target/release/edgeware --chain=edgeware

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