fix Borsh typo

changes `BORSH_IO_ERROR` from `unkown` to `unknown` error
This commit is contained in:
drbh 2021-09-25 13:15:11 -04:00 committed by Michael Vines
parent 95fbc29500
commit e94b7984a1
1 changed files with 2 additions and 2 deletions

View File

@ -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,
@ -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,