diff --git a/pallets/orml-currencies-allowance-extension/src/tests.rs b/pallets/orml-currencies-allowance-extension/src/tests.rs index fcf59ea79..cb97aaacb 100644 --- a/pallets/orml-currencies-allowance-extension/src/tests.rs +++ b/pallets/orml-currencies-allowance-extension/src/tests.rs @@ -141,6 +141,12 @@ fn should_return_allowance() { let delegate: ::AccountId = 1; let amount: ::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);