Skip to content

Commit 62cabd2

Browse files
committed
feat: etna-builder fixes and more tests
1 parent fd46c2d commit 62cabd2

File tree

5 files changed

+1116
-81
lines changed

5 files changed

+1116
-81
lines changed

src/vms/common/defaultSpendOptions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ export const defaultSpendOptions = (
1010
threshold: 1,
1111
memo: new Uint8Array(),
1212
locktime: 0n,
13-
...options,
13+
// Only include options that are not undefined
14+
...Object.fromEntries(
15+
Object.entries(options || {}).filter(([, v]) => v !== undefined),
16+
),
1417
};
1518
};

0 commit comments

Comments
 (0)