-
Notifications
You must be signed in to change notification settings - Fork 257
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
feat(apiUtils): apiUtil package without test #511
Conversation
🦋 Changeset detectedLatest commit: 386263e The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
||
export class ApiConfigSetup { | ||
public static register(config: Config) { | ||
config.registerKey(ApiConfig.apiKey); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config.registerKey(ApiConfig.apiKey)
can be registered in the config only one time. But it's required for evm-api
and sol-api
modules. So that means, that key cannot be registered in evm-api
/sol-api
modules double times. Considering this fact that means we need a next module. I suggest to rename apiUtils
to api
, and add MoralisApi extends ApiModule
class to the api
package.
@moralisweb3/api <-- module, registers `apiKey` in the config
@moralisweb3/evm-api <-- module, has `@moralisweb3/api` dependency
@moralisweb3/sol-api <-- module, has `@moralisweb3/api` dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect!
change package name to register apiKey once
…into feat/apiutils
…into feat/apiutils
name: 'Pull request'
about: A new pull request
New Pull Request
Checklist
Issue Description
Related issue: #
FILL_THIS_OUT
Solution Description