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
We have two substrate chain with different metadata, and generate each of their const, query and tx api in same declare (same namespace) module. there are two same name storage method with different parameter type.
for example chainA has this storage method definition as follow:
Initialing api with chainB provider find that the "api.qeury.balance.storageVersion" don't recognize chainB's type annotations, always use chainA's type annotations.
The text was updated successfully, but these errors were encountered:
There is no "solution", as mentioned above, not any changes that can be made not "not do this" - this is just how TS types are augmented, it tries to apply all and there is one winner.
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.
We have two substrate chain with different metadata, and generate each of their const, query and tx api in same declare (same namespace) module. there are two same name storage method with different parameter type.
for example chainA has this storage method definition as follow:
chainB storage method definition as follow:
When I want to use both of their api in one project and set the tsconfig.json to apply 2 different api augmentations.
Initialing api with chainB provider find that the "api.qeury.balance.storageVersion" don't recognize chainB's type annotations, always use chainA's type annotations.
The text was updated successfully, but these errors were encountered: