(session: Session, toolId?: string | null)
| 27 | } |
| 28 | |
| 29 | async function pendingByToolId(session: Session, toolId?: string | null): Promise<PendingConfirmation | null> { |
| 30 | const pending = await session.pendingConfirmations(); |
| 31 | return pending.find(item => item.toolId === toolId) ?? pending[0] ?? null; |
| 32 | } |
| 33 | |
| 34 | async function confirmFromCli( |
| 35 | session: Session, |