Skip to content

Commit

Permalink
Fix should_return_allowance() test
Browse files Browse the repository at this point in the history
  • Loading branch information
ebma committed Oct 10, 2023
1 parent 6bb68f3 commit db7c5de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pallets/orml-currencies-allowance-extension/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ fn should_return_allowance() {
let delegate: <Test as frame_system::Config>::AccountId = 1;
let amount: <Test as orml_tokens::Config>::Balance = 1_000_000_000u32 as Balance;

// We need to add the currency first
assert_ok!(TokenAllowance::add_allowed_currencies(
RuntimeOrigin::root(),
vec![currency_id]
));

// Check allowance
assert_eq!(TokenAllowance::allowance(currency_id, &owner, &delegate), 0);

Expand Down

0 comments on commit db7c5de

Please sign in to comment.