Skip to content

Commit

Permalink
feat: etna-builder fixes and more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erictaylor committed Sep 4, 2024
1 parent fd46c2d commit 62cabd2
Show file tree
Hide file tree
Showing 5 changed files with 1,116 additions and 81 deletions.
5 changes: 4 additions & 1 deletion src/vms/common/defaultSpendOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export const defaultSpendOptions = (
threshold: 1,
memo: new Uint8Array(),
locktime: 0n,
...options,
// Only include options that are not undefined
...Object.fromEntries(
Object.entries(options || {}).filter(([, v]) => v !== undefined),
),
};
};
Loading

0 comments on commit 62cabd2

Please sign in to comment.