Skip to content

feat: add --network option#425

Merged
o-az merged 1 commit into
mainfrom
o-az/mppx-cli-network-chain
May 9, 2026
Merged

feat: add --network option#425
o-az merged 1 commit into
mainfrom
o-az/mppx-cli-network-chain

Conversation

@o-az

@o-az o-az commented May 9, 2026

Copy link
Copy Markdown
Contributor

Adds --network mainnet|testnet and checks the challenge chain against the connected RPC before signing.

This came up while dogfooding mppx with Hermes Agent. The agent hit a testnet MPP ping challenge but was configured with the mainnet RPC, and later hit a mainnet fal challenge while trying the testnet RPC. In both cases the CLI could still sign/broadcast on the wrong chain, which turned into confusing errors like token initialization failures, payment rejected, or verification failed.

Now the CLI fails before signing if the challenge says one chain and the RPC is connected to another.

@pkg-pr-new

pkg-pr-new Bot commented May 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@425

commit: a025b4b

@o-az o-az changed the title feat: add tempo network safety feat: add --network option May 9, 2026

@brendanjryan brendanjryan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@o-az o-az merged commit 9f660c2 into main May 9, 2026
6 of 8 checks passed
@o-az o-az deleted the o-az/mppx-cli-network-chain branch May 9, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants