Contracts: Fix terminate benchmark (#3558)

Co-authored-by: Alexander Theißen <alex.theissen@me.com>
Co-authored-by: command-bot <>
This commit is contained in:
authored and GitHub committed 2024-03-08 18:13:31 +00:00
1 parent a0c9a3d65a
commit 1fe3c5f23b
2 files changed
+7 -1

No files matched your search

@@ -927,7 +927,7 @@ benchmarks! {
value: code_hashes_bytes,
},
],
deploy_body: Some(body::repeated_dyn(r, vec![
deploy_body: Some(body::repeated_dyn(T::MaxDelegateDependencies::get(), vec![
Counter(beneficiary_len as u32, code_hash_len as u32), // code_hash_ptr
Regular(Instruction::Call(1)),
])),
@@ -943,6 +943,7 @@ benchmarks! {
assert_eq!(T::Currency::total_balance(&beneficiary), 0u32.into());
assert_eq!(T::Currency::balance(&instance.account_id), Pallet::<T>::min_balance() * 2u32.into());
assert_ne!(T::Currency::balance_on_hold(&HoldReason::StorageDepositReserve.into(), &instance.account_id), 0u32.into());
assert_eq!(ContractInfoOf::<T>::get(&instance.account_id).unwrap().delegate_dependencies_count() as u32, T::MaxDelegateDependencies::get());
}: call(origin, instance.addr.clone(), 0u32.into(), Weight::MAX, None, vec![])
verify {
if r > 0 {