Page MenuHomePhabricator

[Chronik] Use struct init for `QueryTxs` instead of `new`
ClosedPublic

Authored by tobias_ruck on Apr 12 2023, 21:53.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC91da94b6cded: [Chronik] Use struct init for `QueryTxs` instead of `new`
Summary

While using new is fine, once we add more fields to QueryTxs using positional parameters becomes less readable, so we use the clearer struct init.

Test Plan

ninja check-crates

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable