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
Description:
We are experiencing an error when attempting to create a token using the provided CreateToken.jsx script. The error occurs during the token metadata creation process. Below are the steps taken and relevant logs.
Steps to Reproduce:
Upload an image to Pinata.
Upload metadata to Pinata.
Create a new token mint and associated token account.
Mint tokens to the created account.
Attempt to create the metadata account using the Metaplex token metadata program.
Logs:
Image uploaded to Pinata: https://gateway.pinata.cloud/ipfs/QmeFRzoFFaN66xbiFxMZcVNCfDyUDiYPThkCTMbTJW4ajT
Metadata uploaded to Pinata: https://gateway.pinata.cloud/ipfs/QmQwG25gBKZ5gWyz6gZv6VMzA9ppiMkKccbHgUx5o2CX8o
Minimum balance for rent exemption: 1461600
Transaction partially signed with mint keypair.
Transaction signed by wallet.
Serialized transaction: Uint8Array(528) [...]
Token created with signature: Gfvp16zCpZXp3bVd6QRGMnrqAd3xf256xVUBzbfN6W1UiQqw5425snQpsgvwDkSc8ojHYWMAGe7XCFn59sNkJiD
Tokens minted with signature: _Transaction {signatures: Array(1), feePayer: _PublicKey2, instructions: Array(3), recentBlockhash: 'GhiM7JYhyeLdiTdC8TRdMXvhf9DH57rgJN82CKrzoMhB', ...}
Serialized mint transaction: Uint8Array(297) [...]
Mint transaction sent with signature: ZqSFUG9bUpj8GMEZEYfhxaFFQgKCViAS2bj2wMkLgRFczTcoFNbxWrEnqeiU6am5BG5hi1mECDKdsk5EwQymy2k
Error creating token: TypeError: Cannot read properties of undefined (reading 'toBuffer')
at handleSubmit (CreateToken.jsx:240:26)
Request:
Assistance in diagnosing and resolving the TypeError related to toBuffer when creating the metadata account. Any insights or suggestions would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered:
GitHub Issue Request
Title: Error creating token: TypeError - Cannot read properties of undefined (reading 'toBuffer')
Description:
We are experiencing an error when attempting to create a token using the provided
CreateToken.jsx
script. The error occurs during the token metadata creation process. Below are the steps taken and relevant logs.Steps to Reproduce:
Logs:
Relevant Code Snippet:
Expected Behavior:
The token creation process should complete without errors, and the metadata should be correctly associated with the token.
Actual Behavior:
A
TypeError
is thrown during the execution of the metadata account creation process, specifically when callingtoBuffer()
.Steps Taken:
Environment:
@metaplex-foundation/mpl-token-metadata
@solana/web3.js
^17.0.2
Request:
Assistance in diagnosing and resolving the
TypeError
related totoBuffer
when creating the metadata account. Any insights or suggestions would be greatly appreciated.Thank you!
The text was updated successfully, but these errors were encountered: