fix Borsh typo
changes `BORSH_IO_ERROR` from `unkown` to `unknown` error
This commit is contained in:
parent
95fbc29500
commit
e94b7984a1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue