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

params: initValue: createType(VerifierData):: DoNotConstruct: Cannot construct unknown type VerifierData #6729

Closed
ashWhiteHat opened this issue Dec 23, 2021 · 3 comments
Labels

Comments

@ashWhiteHat
Copy link

ashWhiteHat commented Dec 23, 2021

I implemented my own pallet and I would like to test interacting substrate-node-template with polkadot-js.

I forked substrate-node-template and imported my own pallet as following.
https://github.com/mmagician/zkPlonk-testing-v3/tree/main/pallets/zk-test

When I ran substrate-node-template and sent extrinsics from polkadot-js ui, the error params: initValue: createType(VerifierData):: DoNotConstruct: Cannot construct unknown type VerifierData happened.
It seems I need to define the types that I use my own pallet to types.json

I defined the types inside of api create method as following according to official documentation but it didn't work.

  const api = await ApiPromise.create({ provider,
    types: {
      "VerifierData": "AccountId",
    } });

I think following types.json is really good example but I defined types.json in my runtime directory but it didn't work.
https://github.com/airalab/robonomics/tree/master/vendor/evercity

Where should I define the type?
Thank you!

@SotaWatanabe
Copy link
Contributor

@jacogr happy new year! Hope you are doing well. Could you take a look at this issue when you have time?

@polkadot-js-bot
Copy link

This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.

@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Feb 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants