Skip to content

Commit

Permalink
fix Borsh typo
Browse files Browse the repository at this point in the history
changes `BORSH_IO_ERROR` from `unkown` to `unknown` error
  • Loading branch information
drbh authored and dankelleher committed Nov 24, 2021
1 parent fcefb8a commit 7a836f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/program/src/program_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl From<u64> for ProgramError {
ACCOUNT_BORROW_FAILED => Self::AccountBorrowFailed,
MAX_SEED_LENGTH_EXCEEDED => Self::MaxSeedLengthExceeded,
INVALID_SEEDS => Self::InvalidSeeds,
BORSH_IO_ERROR => Self::BorshIoError("Unkown".to_string()),
BORSH_IO_ERROR => Self::BorshIoError("Unknown".to_string()),
ACCOUNT_NOT_RENT_EXEMPT => Self::AccountNotRentExempt,
UNSUPPORTED_SYSVAR => Self::UnsupportedSysvar,
ILLEGAL_OWNER => Self::IllegalOwner,
Expand Down Expand Up @@ -227,7 +227,7 @@ where
ACCOUNT_BORROW_FAILED => Self::AccountBorrowFailed,
MAX_SEED_LENGTH_EXCEEDED => Self::MaxSeedLengthExceeded,
INVALID_SEEDS => Self::InvalidSeeds,
BORSH_IO_ERROR => Self::BorshIoError("Unkown".to_string()),
BORSH_IO_ERROR => Self::BorshIoError("Unknown".to_string()),
ACCOUNT_NOT_RENT_EXEMPT => Self::AccountNotRentExempt,
UNSUPPORTED_SYSVAR => Self::UnsupportedSysvar,
ILLEGAL_OWNER => Self::IllegalOwner,
Expand Down

0 comments on commit 7a836f9

Please sign in to comment.