We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@magic-sdk/admin
The magic sdk types are incorrect for incoming data by getMetadataByTokenAndWallet with second argument SOLANA
getMetadataByTokenAndWallet
SOLANA
const { issuer, wallets } = await this.magic.users.getMetadataByTokenAndWallet(token, WalletType.SOLANA); const solanaWallet = wallets?.find((w) => w.walletType === 'SOLANA');
This piece of code will always return undefined because an item of wallets array will never receive walletType key, the key we receive is wallet_type.
undefined
walletType
wallet_type
Now magic handles these types by this interface
export interface MagicWallet { network: string | null; publicAddress: string | null; walletType: string | null; }
Valid types for solana provider should looks like:
export interface MagicWallet { wallet_type: string | null; public_address: string | null; network: string | null; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
✅ Prerequisites
@magic-sdk/admin
)?🐛 Description
The magic sdk types are incorrect for incoming data by
getMetadataByTokenAndWallet
with second argumentSOLANA
This piece of code will always return
undefined
because an item of wallets array will never receivewalletType
key, the key we receive iswallet_type
.Now magic handles these types by this interface
Valid types for solana provider should looks like:
The text was updated successfully, but these errors were encountered: