Describe the bug
Currently, if you are building a wrapper, and you import an interface that is apart of the default-set of plugins (ex: ens/wraps.eth:http@1.1.0), the plugin within the client is used when fetching the ABI. This is not desired behavior, see example below:
#import { Response } into Http from "ens/wraps.eth:http@1.1.0"
You would expect the above to fetch the Http abi from ens/wraps.eth when you runs commands like polywrap codegen and polywrap build, but it doesn't.
Instead, we have a plugin that is registered within the default config @ this URI. See here: https://github.com/polywrap/toolchain/blob/4eb890ef72a15dd8fc70a5d9acc91323478b651c/packages/js/client-config-builder/src/bundles/default.ts#L86-L91
So calls to client.resolve(...) will be short-circuited before reaching ENS, and will just return the manifest of the plugin. This is not desired.
Please provide the steps to reproduce and if possible a minimal demo of the problem.
- Create a wasm wrapper or plugin project.
- Import the interface of a default plugin (ex:
ens/wraps.eth:http@1.1.0) in your schema (ex: #import { Response } into Http from "...")
- Run codegen
polywrap codegen
- Look at codegen, types will have duplicate namespaces (ex:
Http_Http_Response).
Expected behavior
Generated types should have a single namespace (ex: Http_Response).
Describe the bug
Currently, if you are building a wrapper, and you import an interface that is apart of the default-set of plugins (ex:
ens/wraps.eth:http@1.1.0), the plugin within the client is used when fetching the ABI. This is not desired behavior, see example below:#import { Response } into Http from "ens/wraps.eth:http@1.1.0"You would expect the above to fetch the
Httpabi fromens/wraps.ethwhen you runs commands likepolywrap codegenandpolywrap build, but it doesn't.Instead, we have a plugin that is registered within the default config @ this URI. See here: https://github.com/polywrap/toolchain/blob/4eb890ef72a15dd8fc70a5d9acc91323478b651c/packages/js/client-config-builder/src/bundles/default.ts#L86-L91
So calls to
client.resolve(...)will be short-circuited before reaching ENS, and will just return the manifest of the plugin. This is not desired.Please provide the steps to reproduce and if possible a minimal demo of the problem.
ens/wraps.eth:http@1.1.0) in your schema (ex:#import { Response } into Http from "...")polywrap codegenHttp_Http_Response).Expected behavior
Generated types should have a single namespace (ex:
Http_Response).