Skip to content

Commit

Permalink
refactor: rename parameters in searchUtxosByPaymentPart and searchUtx…
Browse files Browse the repository at this point in the history
…osByDelegationPart for clarity (#17)
  • Loading branch information
Mercurial authored Sep 25, 2024
1 parent 14baa03 commit 9e6cfa9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cardano.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,18 @@ export class QueryClient {
});
}

async searchUtxosByPaymentPart(address: Uint8Array): Promise<Utxo[]> {
async searchUtxosByPaymentPart(paymentPart: Uint8Array): Promise<Utxo[]> {
return this.searchUtxosByMatch({
address: {
paymentPart: address,
paymentPart: paymentPart,
},
});
}

async searchUtxosByDelegationPart(address: Uint8Array): Promise<Utxo[]> {
async searchUtxosByDelegationPart(delegationPart: Uint8Array): Promise<Utxo[]> {
return this.searchUtxosByMatch({
address: {
delegationPart: address,
delegationPart: delegationPart,
},
});
}
Expand Down

0 comments on commit 9e6cfa9

Please sign in to comment.