Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/connector-ui/public/skills/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ polygon-agent wallet create --usdc-limit 100 --native-limit 5
# → user approves in browser, browser shows a 6-digit code
# → enter the 6-digit code in the terminal when prompted
# → session saved to ~/.polygon-agent/wallets/main.json
# → notify the user and send them to https://agentconnect.polygon.technology/?rid=<rid>
# so they can fund their wallet with access to the session

# Step 3: Fund wallet
polygon-agent fund
Expand Down
2 changes: 2 additions & 0 deletions packages/polygon-agent-cli/skills/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ polygon-agent wallet create --usdc-limit 100 --native-limit 5
# → user approves in browser, browser shows a 6-digit code
# → enter the 6-digit code in the terminal when prompted
# → session saved to ~/.polygon-agent/wallets/main.json
# → notify the user and send them to https://agentconnect.polygon.technology/?rid=<rid>
# so they can fund their wallet with access to the session

# Step 3: Fund wallet
polygon-agent fund
Expand Down
4 changes: 2 additions & 2 deletions packages/polygon-agent-cli/src/commands/wallet-ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ export function WalletCreateUI({

useInput((input, key) => {
if (phase !== 'code') return;
if (/^\d$/.test(input) && code.length < 6) {
setCode((prev) => prev + input);
if (/^\d+$/.test(input)) {
setCode((prev) => (prev + input).slice(0, 6));
}
if (key.backspace || key.delete) {
setCode((prev) => prev.slice(0, -1));
Expand Down
Loading