You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: default chain_id to 4217 (mainnet), matching mppx and mpp-rs (#108)
* fix: default chain_id to 4217 (mainnet), matching mppx and mpp-rs
When chain_id was omitted from tempo(), the challenge's methodDetails
lacked a chainId field. The Rust CLI (mpp-rs) strictly requires chainId
and rejects challenges without it: 'Malformed payment request: missing
chainId'.
Both mppx and mpp-rs default to 4217 (mainnet). This makes pympp
consistent so servers work out of the box without explicitly passing
chain_id.
* chore: add changelog
* fix: remove hardcoded testnet fee payer URL, require explicit config
The DEFAULT_FEE_PAYER_URL (sponsor.moderato.tempo.xyz) was a testnet-only
service silently used as fallback when no fee payer was configured. With
chain_id now defaulting to mainnet (4217), this would route mainnet
transactions to a testnet sponsor.
Align with mppx and mpp-rs: require explicit fee payer configuration
(either a feePayer account on the method, or a feePayerUrl in
methodDetails). Raise a clear error if neither is set.
* test: update tests for chain_id=4217 default and fee payer changes
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
0 commit comments