Skip to content

Commit d31923a

Browse files
committed
events of wrong order
1 parent 14a22cc commit d31923a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend-rust/src/graphql_api/contract.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ impl Contract {
239239
.try_into()?;
240240
// If `skip` is 0 and at least one event is taken, include the
241241
// `init_transaction_event`.
242-
let include_initial_event = skip <= total_contract_events_count && skip + take >= total_contract_events_count;
242+
let include_initial_event =
243+
skip <= total_contract_events_count && skip + take >= total_contract_events_count;
243244
// Adjust the `take` and `skip` values considering if the
244245
// `init_transaction_event` is requested to be included or not.
245246

0 commit comments

Comments
 (0)