Skip to content

Commit

Permalink
Fix gas generation in delegation (MystenLabs#7960)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadhansood authored Jan 31, 2023
1 parent a8746d4 commit 04f97fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions crates/sui-benchmark/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub async fn generate_all_gas_for_test(
info!(
"Generating gas with number of coins for shared counter init = {:?}, number of coins for \
shared counter payloads = {:?}, number of transfer object token = {:?}, number of coins for \
transfer object payloads = {:?}",
transfer object payloads = {:?}, number of coins for delegation payloads = {:?}",
workload_gas_config
.shared_counter_workload_init_gas_config
.len(),
Expand All @@ -177,7 +177,8 @@ pub async fn generate_all_gas_for_test(
workload_gas_config.transfer_object_workload_tokens.len(),
workload_gas_config
.transfer_object_workload_payload_gas_config
.len()
.len(),
workload_gas_config.delegation_gas_configs.len(),
);
let mut coin_configs = vec![];
coin_configs.extend(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ impl WorkloadConfiguration {
)
};
let delegation_gas_configs = if delegation_weight > 0 {
DelegationWorkload::generate_gas_config_for_payloads(num_transfer_accounts)
DelegationWorkload::generate_gas_config_for_payloads(delegate_max_ops)
} else {
vec![]
};
Expand Down

0 comments on commit 04f97fc

Please sign in to comment.