-
Notifications
You must be signed in to change notification settings - Fork 88
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
Add optional nftEndpoint param #586
Add optional nftEndpoint param #586
Conversation
This pull request has been linked to Shortcut Story #81912: add optional nftEndpoint param. |
test('Generate JSON RPC request payload with method `magic_get_info`', async () => { | ||
const magic = createMagicSDK(); | ||
magic.user.request = jest.fn(); | ||
|
||
await storage.setItem('mc_active_wallet', 'metamask'); | ||
|
||
await magic.user.getInfo(); | ||
|
||
const requestPayload = magic.user.request.mock.calls[0][0]; | ||
expect(requestPayload.method).toBe('magic_get_info'); | ||
expect(requestPayload.params).toEqual([{ walletType: 'metamask' }]); | ||
}); |
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.
This code is not related to this PR, but it helps this PR to pass the coverage threshold.
The merge-base changed after approval.
77b5206
to
f5fea52
Compare
@Ariflo thanks for letting me know btw |
@octave08 we believe it's currently failing due to a recent change to our CI authentication token. Infra is currently in process of getting it fixed. Hoping this get resolved today, if not early tomorrow. |
📦 Pull Request
[Provide a general summary of the pull request here.]
Create a magic instance with
nftEnpoint
param so that internal developers point to nft-api endpoint they want✅ Fixed Issues
Add
nftEndpoint
param in SDK config🚨 Test instructions
[Describe any additional context required to test the PR/feature/bug fix.]
Please only add one label:
patch
: Bug Fix?minor
: New Feature?major
: Breaking Change?skip-release
: It's unnecessary to publish this change.📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via: