-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deserialize-custom-data-frontend (#347)
* refactor(): replace deprecated findProgramAddress with findProgramAddressSync 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. * refactor(): replace deprecated findProgramAddress with findProgramAddressSync 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. * refactor: improve error handling and logging in Movie deserialization 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. * refactor(): - Improved efficiency by importing specific modules from @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. * refactor(): replaced the use of .then with async/await and implemented error handling * chore(): added updated movie review app link and application screenshot * chore(): updated repo links and included demo project images / screenshots --------- Co-authored-by: Onyewuchi Emeka <[email protected]>
- Loading branch information
1 parent
b3cc5bf
commit 73caf29
Showing
3 changed files
with
44 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.