Skip to content

Commit

Permalink
WIP: keyring type tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Apr 2, 2023
1 parent 907370d commit 6a62443
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/agoric-cli/src/lib/chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import { execFileSync as execFileSyncAmbient } from 'child_process';

const agdBinary = 'agd';

/**
* @param {string} literalOrName
* @param {{ keyringBackend?: string }} opts
* @param {{ execFileSync?: typeof execFileSyncAmbient }} io
*/
export const normalizeAddressWithOptions = (
literalOrName,
{ keyringBackend = undefined } = {},
Expand Down Expand Up @@ -35,7 +40,7 @@ harden(normalizeAddressWithOptions);
* from: string,
* dryRun?: boolean,
* verbose?: boolean,
* keyring?: {home: string, backend: string}
* keyring?: {home?: string, backend: string}
* stdout?: Pick<import('stream').Writable, 'write'>
* execFileSync?: typeof import('child_process').execFileSync
* }} opts
Expand Down
2 changes: 1 addition & 1 deletion packages/agoric-cli/src/lib/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const getLiveOffers = async (address, vstorage, fromBoard) => {
* @param {import('./rpc').MinimalNetworkConfig & {
* from: string,
* verbose?: boolean,
* keyring?: {home: string, backend: string},
* keyring?: {home?: string, backend: string},
* stdout: Pick<import('stream').Writable, 'write'>,
* execFileSync: typeof import('child_process').execFileSync,
* delay: (ms: number) => Promise<void>,
Expand Down

0 comments on commit 6a62443

Please sign in to comment.