sdk: refactor pda generation

This commit is contained in:
Trent Nelson
2021-06-18 01:03:58 -06:00
committed by Trent Nelson
parent f871afd548
commit d3a7e22112
11 changed files with 110 additions and 22 deletions

View File

@@ -120,4 +120,5 @@ pub enum InstructionErrorType {
InvalidAccountOwner = 46,
ArithmeticOverflow = 47,
UnsupportedSysvar = 48,
IllegalOwner = 49,
}

View File

@@ -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) => {