fix Borsh typo
changes `BORSH_IO_ERROR` from `unkown` to `unknown` error
This commit is contained in:
@ -169,7 +169,7 @@ impl From<u64> for ProgramError {
|
|||||||
ACCOUNT_BORROW_FAILED => Self::AccountBorrowFailed,
|
ACCOUNT_BORROW_FAILED => Self::AccountBorrowFailed,
|
||||||
MAX_SEED_LENGTH_EXCEEDED => Self::MaxSeedLengthExceeded,
|
MAX_SEED_LENGTH_EXCEEDED => Self::MaxSeedLengthExceeded,
|
||||||
INVALID_SEEDS => Self::InvalidSeeds,
|
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,
|
ACCOUNT_NOT_RENT_EXEMPT => Self::AccountNotRentExempt,
|
||||||
UNSUPPORTED_SYSVAR => Self::UnsupportedSysvar,
|
UNSUPPORTED_SYSVAR => Self::UnsupportedSysvar,
|
||||||
ILLEGAL_OWNER => Self::IllegalOwner,
|
ILLEGAL_OWNER => Self::IllegalOwner,
|
||||||
@ -227,7 +227,7 @@ where
|
|||||||
ACCOUNT_BORROW_FAILED => Self::AccountBorrowFailed,
|
ACCOUNT_BORROW_FAILED => Self::AccountBorrowFailed,
|
||||||
MAX_SEED_LENGTH_EXCEEDED => Self::MaxSeedLengthExceeded,
|
MAX_SEED_LENGTH_EXCEEDED => Self::MaxSeedLengthExceeded,
|
||||||
INVALID_SEEDS => Self::InvalidSeeds,
|
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,
|
ACCOUNT_NOT_RENT_EXEMPT => Self::AccountNotRentExempt,
|
||||||
UNSUPPORTED_SYSVAR => Self::UnsupportedSysvar,
|
UNSUPPORTED_SYSVAR => Self::UnsupportedSysvar,
|
||||||
ILLEGAL_OWNER => Self::IllegalOwner,
|
ILLEGAL_OWNER => Self::IllegalOwner,
|
||||||
|
Reference in New Issue
Block a user