sdk: refactor pda generation
This commit is contained in:
committed by
Trent Nelson
parent
f871afd548
commit
d3a7e22112
@@ -120,4 +120,5 @@ pub enum InstructionErrorType {
|
||||
InvalidAccountOwner = 46,
|
||||
ArithmeticOverflow = 47,
|
||||
UnsupportedSysvar = 48,
|
||||
IllegalOwner = 49,
|
||||
}
|
||||
|
@@ -753,6 +753,9 @@ impl From<TransactionError> for tx_by_addr::TransactionError {
|
||||
InstructionError::UnsupportedSysvar => {
|
||||
tx_by_addr::InstructionErrorType::UnsupportedSysvar
|
||||
}
|
||||
InstructionError::IllegalOwner => {
|
||||
tx_by_addr::InstructionErrorType::IllegalOwner
|
||||
}
|
||||
} as i32,
|
||||
custom: match instruction_error {
|
||||
InstructionError::Custom(custom) => {
|
||||
|
Reference in New Issue
Block a user