sdk: Add Borsh support for types and utilities (#15290)
* sdk: Add Borsh to Pubkey * Add serialization error for easier borsh integration * Add Borsh usage to banks-client and sdk * Rename SerializationError -> IOError * Add new errors to proto * Update Cargo lock * Update Cargo.lock based on CI * Clippy * Update ABI on bank * Address review feedback * Update sanity program instruction count test
This commit is contained in:
@ -72,6 +72,8 @@ pub fn to_instruction_error(error: ProgramError) -> InstructionError {
|
||||
ProgramError::AccountBorrowFailed => InstructionError::AccountBorrowFailed,
|
||||
ProgramError::MaxSeedLengthExceeded => InstructionError::MaxSeedLengthExceeded,
|
||||
ProgramError::InvalidSeeds => InstructionError::InvalidSeeds,
|
||||
ProgramError::IOError(err) => InstructionError::IOError(err),
|
||||
ProgramError::AccountNotRentExempt => InstructionError::AccountNotRentExempt,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user