Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Update deserialize instruction data #365

Conversation

EmekaManuel
Copy link
Contributor

Problem

outdated movie review frontend app still being referenced

Summary of Changes

  • replaced the outdated url with the new / current dapp

Onyewuchi Emeka added 8 commits August 25, 2024 14:21
…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.
…@solana/web3.js instead of importing the entire package.

- Replaced .then() with await for better readability and async handling.
- Applied linting to maintain code consistency and clarity.
- Replaced abbreviations like tx  with more descriptive variable names for better code readability.
- Enhanced error handling using trycatch.
@@ -599,8 +599,7 @@ address, you can generate a new program ID from the playground before deploying.
You can test your program by submitting a transaction with the right instruction
data. For that, feel free to use
[this script](https://github.com/Unboxed-Software/solana-movie-client) or
[the frontend](https://github.com/Unboxed-Software/solana-movie-frontend) we
built in the
[the frontend](https://github.com/EmekaManuel/movie-review-dapp) we built in the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update this link to use solana-developer/movie-review-frontend

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update this link to use solana-developer/movie-review-frontend

updated ✅

@@ -269,7 +282,7 @@ submit a movie review and have it stored on Solana’s network. We’ll build th
app a little bit at a time over the next few lessons, adding new functionality
each lesson.

![Movie review frontend](/public/assets/courses/unboxed/movie-reviews-frontend.png)
![Movie review frontend](/public/assets/courses/superteam/movie-review-frontend-dapp.png)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just move this to /public/assets/courses/movie-review-frontend-dapp.png

Copy link
Contributor Author

@EmekaManuel EmekaManuel Aug 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed ✅ - check #346 - 272fc38

@@ -546,7 +575,7 @@ successful.

If you need a bit more time with this project to feel comfortable, have a look
at the complete
[solution code](https://github.com/Unboxed-Software/solana-movie-frontend/tree/solution-serialize-instruction-data).
[solution code](https://github.com/EmekaManuel/movie-review-dapp/tree/solution-serialize-instruction-data).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update this link too.

Copy link
Contributor Author

@EmekaManuel EmekaManuel Aug 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update this link too.

updated ✅ - check #346 - 272fc38

alert(JSON.stringify(e));
console.log(`Transaction submitted: ${explorerLink}`);
} catch (error) {
alert(JSON.stringify(error));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for JSON stringify and per CONTRIBUTING.md you are allowed to assume anything thrown is an error.

catch (thrownObject) {
  const error = thrownObject as Error
  alert(error.message)
}

Copy link
Contributor Author

@EmekaManuel EmekaManuel Aug 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. check #346 - 272fc38

Copy link
Contributor

@mikemaccana mikemaccana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nearly done....

@mikemaccana
Copy link
Contributor

mikemaccana commented Sep 11, 2024

@EmekaManuel #365 and #359 both have updates to native-onchain-development/serialize-instruction-data-frontend.md.

Please submit a (as in, one) PR for the lesson you are changing, as mentioned in the Superteam Earn bounty

Some people have submitted a single PR for multiple lessons, which isn't ideal (since they may win one and not win the other) but if one person submits multiple PRs for the same lesson it creates overlap in my work.

I have already marked you as the winner for serialize-instruction-data-frontend.md in #359. You cannot win multiple times for the same lesson. I have 70 PRs to review. Submitting multiple entries for the same lesson completely breaks my workflow which is based around there not being overlap in the PRs.

Please let me know:

@EmekaManuel
Copy link
Contributor Author

@EmekaManuel #365 and #359 both have updates to native-onchain-development/serialize-instruction-data-frontend.md.

Please submit a (as in, one) PR for the lesson you are changing, as mentioned in the Superteam Earn bounty

Some people have submitted a single PR for multiple lessons, which isn't ideal (since they may win one and not win the other) but if one person submits multiple PRs for the same lesson it creates overlap in my work.

I have already marked you as the winner for serialize-instruction-data-frontend.md in #359. You cannot win multiple times for the same lesson. I have 70 PRs to review. Submitting multiple entries for the same lesson completely breaks my workflow which is based around there not being overlap in the PRs.

Please let me know:

Kindly disregard this pull request to avoid complications. I have created a new pull request which only changes the deserialize-instruction-data lesson - #462

@mikemaccana
Copy link
Contributor

Closing as requested.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants