Skip to content

Commit

Permalink
updated integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrq1911 committed Jul 25, 2022
1 parent 3767566 commit b29e866
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "runtime-integration-tests"
version = "0.7.0"
version = "0.7.1"
description = "Integration tests"
authors = ["GalacticCouncil"]
edition = "2021"
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/src/non_native_fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn basilisk_run_to_block(to: BlockNumber) {
}

#[test]
fn non_native_fee_payment_works() {
fn non_native_fee_payment_works_with_xyk_spot_price() {
use pallet_transaction_multi_payment::TransactionMultiPaymentDataProvider;

TestNet::reset();
Expand Down Expand Up @@ -108,14 +108,14 @@ fn non_native_fee_payment_works() {
));

let dave_balance = basilisk_runtime::Tokens::free_balance(1, &AccountId::from(DAVE));
assert_eq!(dave_balance, 968_048_559_011_998);
assert_eq!(dave_balance, 968_046_450_495_217);

expect_basilisk_events(vec![
pallet_transaction_multi_payment::Event::FeeWithdrawn {
account_id: DAVE.into(),
asset_id: 1,
native_fee_amount: 55_738_705_000_000,
non_native_fee_amount: 31_951_440_988_002,
non_native_fee_amount: 31_953_549_504_783,
destination_account_id: basilisk_runtime::MultiTransactionPayment::get_fee_receiver(),
}
.into(),
Expand Down

0 comments on commit b29e866

Please sign in to comment.