Closed monitz87 closed 2 years ago
@savudani8 mind if I ask how you got it fixed?
I don't believe this catches your namespace and maps the Call/Event correctly -
Your seems to be polymesh_runtime::ci::runtime::Call
(or something like that, would need to check agains the output itself)
How can I help you check this?
Found it
/**
* Lookup354: polymesh_runtime_ci::runtime::Call
**/
@savudani8 mind if I ask how you got it fixed?
@monitz87 In our case simpy upgrading the @polkadot/api
version fixed it.
Make sure you're using the latest metadata from your substrate chain to generate the interfaces.
This is a working example in our library that's basically identical to yours and works https://github.com/interlay/interbtc-api/blob/master/src/parachain/issue.ts#L304
Thanks @savudani8, but it seems the issue is related to what @jacogr mentioned
@jacogr: I hardcoded '*_runtime_*::runtime::Call', '*_runtime_*::runtime::Event'
into the PATHS_ALIAS
array and ran the typegen again and it works now. What would be the long term solution here?
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.
Having the same issue as #4254 on a custom chain
Snippet:
Error:
Augmented type for the sudo extrinsic:
I read through the linked issue but didn't find any solution there. Most of the links posted there lead to 404 error pages
What am I doing wrong? Also, would calling
toU8a()
on the submittable extrinsic work in the meantime while I try to get the types working correctly?