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:
@@ -114,4 +114,6 @@ pub enum InstructionErrorType {
|
||||
ProgramFailedToCompile = 41,
|
||||
Immutable = 42,
|
||||
IncorrectAuthority = 43,
|
||||
IOError = 44,
|
||||
AccountNotRentExempt = 45,
|
||||
}
|
||||
|
@@ -700,6 +700,12 @@ impl From<TransactionError> for tx_by_addr::TransactionError {
|
||||
InstructionError::IncorrectAuthority => {
|
||||
tx_by_addr::InstructionErrorType::IncorrectAuthority
|
||||
}
|
||||
InstructionError::IOError(_) => {
|
||||
tx_by_addr::InstructionErrorType::IOError
|
||||
}
|
||||
InstructionError::AccountNotRentExempt => {
|
||||
tx_by_addr::InstructionErrorType::AccountNotRentExempt
|
||||
}
|
||||
} as i32,
|
||||
custom: match instruction_error {
|
||||
InstructionError::Custom(custom) => {
|
||||
|
Reference in New Issue
Block a user