Skip to content

Commit

Permalink
fix: minor README typo fixes and tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemaccana committed Jan 25, 2024
1 parent 4fae22a commit 6957433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ npm i @solana-developers/helpers

### getCustomErrorMessage(programErrors, errorMessage)

Sometimes Solana libaries return an error like:
Sometimes Solana transactions throw an error with a message like:

> failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x10
`getCustomErrorMessage()` allows you to turn this message into the more readable message that matches the number message from the custom program, like:
`getCustomErrorMessage()` allows you to turn this message into a more readable message from the custom program, like:

> This token mint cannot freeze accounts
Expand Down

0 comments on commit 6957433

Please sign in to comment.