-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DepositFailed in benchmarks #921
Comments
I see this post on Stack Exchange, but it has been closed for some reason. |
what's the error? |
The required balance is not deposited. |
fn create_account_id<T: Config>(suri: &'static str, n: u32) -> T::AccountId {
let user = account(suri, n, SEED);
let _ = <T::RMultiCurrency as MultiCurrency<<T as frame_system::Config>::AccountId>>::deposit(
CurrencyId::Native,
&user,
1_000_000u32.into(),
);
assert_eq!(
<T::RMultiCurrency as MultiCurrency<<T as frame_system::Config>::AccountId>>::free_balance(
CurrencyId::Native,
&user
),
1_000_000u32.into()
);
user
}
when I run ...
left = 0, right = 1000000
... |
what's the error you are getting from hint, don't ignore results. |
DepositFailed |
without looking at the code, my guess is that you have different ED configuration and the deposit amount in test is too low |
I checked it and it's not the case. |
deposit
method oforml-currencies
is not working in benchmarksReference: https://github.com/ImbueNetwork/imbue/blob/0744ca52a89b2d2a17ba379c43663c3882df2592/pallets/proposals/src/test_utils.rs#L117-L128
The text was updated successfully, but these errors were encountered: