-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix refund benchmark for pallet_assets #14561
Conversation
bot bench $ pallet dev pallet-assets |
@bkontur https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3171809 was started for your command Comment |
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
bot rebase |
Rebased |
@@ -514,8 +514,7 @@ benchmarks_instance_pallet! { | |||
SystemOrigin::Signed(new_account.clone()).into(), | |||
asset_id | |||
).is_ok()); | |||
// `touch` should reserve some balance of the caller... | |||
assert!(!T::Currency::reserved_balance(&new_account).is_zero()); | |||
assert_eq!(T::Currency::reserved_balance(&new_account), T::AssetAccountDeposit::get()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can re-add the comment? Basically this pr doesn't "fix" anything, it just ensures that the right amount is reserved or?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment re-added,
yeah, PR fixes just benchmark and right amount comparison, which didnt work for AssetAccountDeposit = 0
@bkontur Command |
bot merge |
Waiting for commit status. |
* Fix refund benchmark for pallet_assets * Update frame/assets/src/benchmarking.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Re-added docs * Another "fix" --------- Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: parity-processbot <>
* Fix refund benchmark for pallet_assets * Update frame/assets/src/benchmarking.rs Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> * Re-added docs * Another "fix" --------- Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: parity-processbot <>
No description provided.