You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As shown in the above code, Assertion is my custom type, but there is a CorePrimitiveAssertion type within metadata that is identical to Assertion. I want to directly replace it with CorePrimitiveAssertion, but when generating types, I get an error:
It seems that CorePrimitiveAssertion is not automatically imported into the generated types.If I manually import the following code in this file, it all works:
As shown in the above code,
Assertion
is my custom type, but there is aCorePrimitiveAssertion
type within metadata that is identical toAssertion
. I want to directly replace it withCorePrimitiveAssertion
, but when generating types, I get an error:It seems that
CorePrimitiveAssertion
is not automatically imported into the generated types.If I manually import the following code in this file, it all works:All other types work fine. I just want to replace an existing type in metadata within a custom type. Is this achievable?
"@polkadot/api": "^10.9.1"
Environment:
Language:
The text was updated successfully, but these errors were encountered: