Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed May 29, 2024
1 parent ce01f2d commit 8228f4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "silent-payments",
"version": "0.3.2",
"version": "0.3.3",
"description": "BIP-352",
"main": "src/index.ts",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type UTXO = {
};

export type Target = {
address: string; // either address or payment code
address?: string; // either address or payment code
value?: number;
};

Expand Down Expand Up @@ -49,7 +49,7 @@ export class SilentPayment {

const silentPaymentGroups: Array<SilentPaymentGroup> = [];
for (const target of targets) {
if (!target.address.startsWith("sp1")) {
if (!target.address?.startsWith("sp1")) {
ret.push(target); // passthrough
continue;
}
Expand Down

0 comments on commit 8228f4d

Please sign in to comment.