Skip to content

Commit

Permalink
bugfix: fix applyWorkerOptions to correctly coerce paymentAddress
Browse files Browse the repository at this point in the history
changes when a string is supplied
  • Loading branch information
KirillKirnichansky committed Mar 1, 2023
1 parent d855697 commit b47356a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/useDCPWorker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ declare interface Wallet {
Keystore: typeof Keystore;
}
declare class Address {
constructor(address: string | Address);
constructor(address: string | Address | undefined | null);
address: string;
toString(): string;
eq: (value: any) => boolean;
Expand Down
7 changes: 6 additions & 1 deletion lib/useDCPWorker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b47356a

Please sign in to comment.