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

Create set of Polkadot.js test scripts #1198

Closed
2 of 3 tasks
amerameen opened this issue Nov 26, 2020 · 2 comments · Fixed by #1336
Closed
2 of 3 tasks

Create set of Polkadot.js test scripts #1198

amerameen opened this issue Nov 26, 2020 · 2 comments · Fixed by #1336
Assignees
Milestone

Comments

@amerameen
Copy link
Contributor

Expected Behavior

  • Scripts should list each of the available Polkadot.js methods and have an example of executing each of the call

Current Behavior

Possible Solution

Steps to Reproduce

Specification

  • go version:
  • gossamer version:
  • gossamer commit tag:
  • gossamer commit hash:
  • operating system:
  • additional links:

Checklist

  • I have read CODE_OF_CONDUCT and CONTRIBUTING
  • I have provided as much information as possible and necessary
  • I am planning to submit a pull request to fix this issue myself
@noot
Copy link
Contributor

noot commented Jan 7, 2021

potentially related to #838 #841

@edwardmack
Copy link
Member

Polkadot.js builds it's api dynamically based on the functionality of the current runtime wasm. The functions available are presented in the metadata for the runtime. So, we can't just build a set of scripts to test Polkadot.js since the api will change based on the runtime, instead we need to dynamically build the test scripts based on the runtime's metadata. Polkadot.js apps does this when determining how to construct the UI.

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

Successfully merging a pull request may close this issue.

4 participants