Skip to content

Commit

Permalink
[bench] Set higher Gas balance so it works for large batch (MystenLab…
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind authored Mar 23, 2022
1 parent 17f2056 commit 83469be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sui/src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,12 @@ impl ClientServerBenchmark {
let mut gas_object_id = [0; 20];
gas_object_id[8..16].clone_from_slice(&(offset + x).to_be_bytes()[..8]);
let gas_object_id = ObjectID::from(gas_object_id);
let gas_object = Object::with_id_owner_for_testing(gas_object_id, address);
let gas_object = Object::with_id_owner_gas_coin_object_for_testing(
gas_object_id,
SequenceNumber::new(),
address,
2000000,
);
assert!(gas_object.version() == SequenceNumber::from(0));

(objects, gas_object)
Expand Down

0 comments on commit 83469be

Please sign in to comment.