We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c15c011 commit f7a26adCopy full SHA for f7a26ad
modules/abstract-lightning/src/codecs/api/wallet.ts
@@ -52,11 +52,15 @@ export const WatchOnlyAccount = t.type({
52
53
export type WatchOnlyAccount = t.TypeOf<typeof WatchOnlyAccount>;
54
55
-export const WatchOnly = t.type({
56
- master_key_birthday_timestamp: t.string,
57
- master_key_fingerprint: t.string,
58
- accounts: t.array(WatchOnlyAccount),
59
-});
+export const WatchOnly = t.intersection([
+ t.type({
+ accounts: t.array(WatchOnlyAccount),
+ }),
+ t.partial({
60
+ master_key_birthday_timestamp: t.string,
61
+ master_key_fingerprint: t.string,
62
63
+]);
64
65
export type WatchOnly = t.TypeOf<typeof WatchOnly>;
66
0 commit comments