-
Notifications
You must be signed in to change notification settings - Fork 305
Fix deserialize-custom-data-frontend #347
Fix deserialize-custom-data-frontend #347
Conversation
…ressSync The signature '(seeds: (Buffer | Uint8Array)[], programId: PublicKey): Promise<[PublicKey, number]>' of 'web3.PublicKey.findProgramAddress' is deprecated. Updated the code to use the recommended 'findProgramAddressSync' method for better compatibility.
…ressSync The signature '(seeds: (Buffer | Uint8Array)[], programId: PublicKey): Promise<[PublicKey, number]>' of 'web3.PublicKey.findProgramAddress' is deprecated. Updated the code to use the recommended 'findProgramAddressSync' method for better compatibility.
Enhanced the deserialization error handling by adding detailed logging: - Log buffer length and raw buffer data in hexadecimal format for better debugging. - Switched to console.error for more appropriate error logging.
content/courses/native-onchain-development/deserialize-custom-data-frontend.md
Show resolved
Hide resolved
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.
Same feedback as #346, can you also please ensure the screenshots are updated to show your new program?
You will also need to update https://github.com/Unboxed-Software repos mentioned in this article (or if you have replaced these repos, update the URLs). This is mentioned on the Superteam Earn bounty.
One these are fixed this should be a good candidate to go in.
…@solana/web3.js instead of importing the entire package. - Applied linting to maintain code consistency and clarity. - Replaced abbreviations like e with error with more descriptive variable names for better code readability.
i have made the necessary changes which include:
|
once i rebuild the new application using create-solana-dapp, I'd update the unboxed repo links and include screenshots. |
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.
Waiting for create-solana-dapp and screenshots as previously mentioned.
I have implemented these, kindly check this commit - afd318d ![]() |
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.
Thanks @EmekaManuel ! Marking this as the winner for deserialize-custom-data-frontend. 🏆
fix: replace deprecated findProgramAddress with findProgramAddressSync
refactor: improve error handling and logging in Movie deserialization
Problem
Summary of Changes
findProgramAddress
method with the recommendedfindProgramAddressSync
method for more reliable and up-to-date usage.console.log
toconsole.error
for better clarity and appropriate error handling.