Skip to content

Commit

Permalink
Named ctor parameters to prevent confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelBCarter committed Nov 23, 2024
1 parent f34ae35 commit 734727a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions Sources/XyoClient/BoundWitness/Body/BoundWitnessBodyJson.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public class XyoBoundWitnessBodyJson: XyoBoundWitnessBodyProtocol, Encodable, De
public var schema: String

init(
_ addresses: [String],
_ previous_hashes: [String?],
_ payload_hashes: [String],
_ payload_schemas: [String],
_ query: String? = nil
addresses: [String],
payload_hashes: [String],
payload_schemas: [String],
previous_hashes: [String?],
query: String? = nil
) {
self.addresses = addresses
self.payload_hashes = payload_hashes
Expand Down
10 changes: 5 additions & 5 deletions Sources/XyoClient/BoundWitness/BoundWitnessBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public class BoundWitnessBuilder {

private func hashableFields() -> XyoBoundWitnessBodyJson {
return XyoBoundWitnessBodyJson(
_accounts.map { witness in witness.address },
_previous_hashes,
_payload_hashes,
_payload_schemas,
_query
addresses: _accounts.map { witness in witness.address },
payload_hashes: _payload_hashes,
payload_schemas: _payload_schemas,
previous_hashes: _previous_hashes,
query: _query
)
}

Expand Down

0 comments on commit 734727a

Please sign in to comment.