From e94b7984a1ab7077bad9c9e171e1911cecbeb029 Mon Sep 17 00:00:00 2001 From: drbh Date: Sat, 25 Sep 2021 13:15:11 -0400 Subject: [PATCH] fix Borsh typo changes `BORSH_IO_ERROR` from `unkown` to `unknown` error --- sdk/program/src/program_error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/program/src/program_error.rs b/sdk/program/src/program_error.rs index f07936cc37..bce1a6a50e 100644 --- a/sdk/program/src/program_error.rs +++ b/sdk/program/src/program_error.rs @@ -169,7 +169,7 @@ impl From 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,