Skip to content

Commit

Permalink
fix: Fix events test
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedey committed Jul 27, 2024
1 parent 1399b63 commit 2155ef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radix-engine-tests/tests/system/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,7 @@ fn account_withdraw_and_deposit_fungibles_should_emit_correct_event() {
account::WithdrawEvent::EVENT_NAME
);
assert_eq!(
vault_withdraw_event.1.decode_as::<account::WithdrawEvent>().unwrap(),
account_withdraw_event.1.decode_as::<account::WithdrawEvent>().unwrap(),
account::WithdrawEvent::Fungible(XRD, dec!("1"))
)
}
Expand All @@ -2116,7 +2116,7 @@ fn account_withdraw_and_deposit_fungibles_should_emit_correct_event() {
fungible_vault::DepositEvent::EVENT_NAME
);
assert_eq!(
vault_withdraw_event.1.decode_as::<fungible_vault::DepositEvent>().unwrap(),
vault_deposit_event.1.decode_as::<fungible_vault::DepositEvent>().unwrap(),
fungible_vault::DepositEvent::new(dec!("1"))
)
}
Expand All @@ -2126,7 +2126,7 @@ fn account_withdraw_and_deposit_fungibles_should_emit_correct_event() {
account::DepositEvent::EVENT_NAME
);
assert_eq!(
vault_withdraw_event.1.decode_as::<account::DepositEvent>().unwrap(),
account_deposit_event.1.decode_as::<account::DepositEvent>().unwrap(),
account::DepositEvent::Fungible(XRD, dec!("1"))
)
}
Expand Down

0 comments on commit 2155ef2

Please sign in to comment.