Skip to content

Commit

Permalink
fix error codes in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Aug 29, 2023
1 parent 78559d9 commit 2dabcd5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions token/transfer-hook-example/tests/functional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ use {
transaction::{Transaction, TransactionError},
},
spl_tlv_account_resolution::{
account::ExtraAccountMeta, seeds::Seed, state::ExtraAccountMetaList,
account::ExtraAccountMeta, error::AccountResolutionError, seeds::Seed,
state::ExtraAccountMetaList,
},
spl_token_2022::{
extension::{transfer_hook::TransferHookAccount, ExtensionType, StateWithExtensionsMut},
Expand Down Expand Up @@ -270,7 +271,7 @@ async fn success_execute() {
error,
TransactionError::InstructionError(
0,
InstructionError::Custom(TransferHookError::IncorrectAccount as u32),
InstructionError::Custom(AccountResolutionError::IncorrectAccount as u32),
)
);
}
Expand Down Expand Up @@ -309,7 +310,7 @@ async fn success_execute() {
error,
TransactionError::InstructionError(
0,
InstructionError::Custom(TransferHookError::IncorrectAccount as u32),
InstructionError::Custom(AccountResolutionError::IncorrectAccount as u32),
)
);
}
Expand Down Expand Up @@ -356,7 +357,7 @@ async fn success_execute() {
error,
TransactionError::InstructionError(
0,
InstructionError::Custom(TransferHookError::IncorrectAccount as u32),
InstructionError::Custom(AccountResolutionError::IncorrectAccount as u32),
)
);
}
Expand Down Expand Up @@ -395,7 +396,7 @@ async fn success_execute() {
error,
TransactionError::InstructionError(
0,
InstructionError::Custom(TransferHookError::IncorrectAccount as u32),
InstructionError::Custom(AccountResolutionError::IncorrectAccount as u32),
)
);
}
Expand Down

0 comments on commit 2dabcd5

Please sign in to comment.