Skip to content

Commit

Permalink
fix: let createSiweMessge do the defaulting #436 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansonhkg committed Apr 29, 2024
1 parent 198a30a commit 6f28d97
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,17 +204,12 @@ export class LitNodeClientNodeJs
litNodeClient: this,
walletAddress: dAppOwnerWalletAddress,
nonce: nonce,

// -- default configuration for recap object capability
expiration:
params.expiration ?? new Date(Date.now() + 1000 * 60 * 7).toISOString(),
domain: params.domain ?? 'example.com',
statement:
params.statement ??
'This is a test statement. You can put anything you want here.',
expiration: params.expiration,
domain: params.domain,
statement: params.statement,

// -- capacity delegation specific configuration
uses: params.uses ?? '1',
uses: params.uses,
delegateeAddresses: params.delegateeAddresses,
capacityTokenId: params.capacityTokenId,
});
Expand Down

0 comments on commit 6f28d97

Please sign in to comment.