HomePhabricator

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

Description

[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

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D13693

Details

Provenance
tobias_ruckAuthored on Apr 12 2023, 21:53
tobias_ruckPushed on Apr 13 2023, 12:12
Reviewer
Restricted Project
Differential Revision
D13693: [Chronik] Use struct init for `QueryTxs` instead of `new`
Parents
rABCcaec6af0a8c4: [ecashaddrjs] Add isValidCashAddress function
Branches
Unknown
Tags
Unknown