Skip to content

Commit

Permalink
Merge pull request #148 from lxfind/fix-bench-failure
Browse files Browse the repository at this point in the history
Fix bench failure
  • Loading branch information
lxfind authored Jan 10, 2022
2 parents 1f37fc1 + dad6322 commit b15f328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastpay/src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ impl ClientServerBenchmark {
// Make one transaction per account (transfer order + confirmation).
let mut orders: Vec<Bytes> = Vec::new();
let mut next_recipient = get_key_pair().0;
for (pubx, object_ref, secx) in account_objects.iter() {
for ((pubx, object_ref, secx), gas_payment) in account_objects.iter().zip(gas_objects) {
let transfer = Transfer {
object_ref: *object_ref,
sender: *pubx,
recipient: Address::FastPay(next_recipient),
gas_payment: gas_objects[0],
gas_payment,
};
next_recipient = *pubx;
let order = Order::new_transfer(transfer, secx);
Expand Down

0 comments on commit b15f328

Please sign in to comment.