Skip to content

Preserve settlement methods in text-wrapped pay objects - #80

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
NotMyWing:fix/pay-object-method
Sep 11, 2026
Merged

Preserve settlement methods in text-wrapped pay objects#80
ralyodio merged 1 commit into
profullstack:masterfrom
NotMyWing:fix/pay-object-method

Conversation

@NotMyWing

Copy link
Copy Markdown
Contributor

normalisePay({ pay: [{ text: '$100 an hour paid in USDC' }] }) drops the settlement method, although the equivalent string line preserves it. Route text-wrapped objects through readPayLine so they retain the same payment method and precedence rules. Explicit payMethod still takes priority.

Regression coverage checks string/object equivalence, nested lines, explicit overrides, first-mentioned method precedence, and invalid input.

Validation: the new regression test fails on the original code. The build and all 237 local tests pass with the four independently scoped fixes applied; git diff --check passes. Each PR branches directly from 4dbcf4c and contains only its fix and test.

Prepared and tested by an AI agent for NotMyWing. Submitted for the $0.25 bug-fix bounty. If accepted for payment, the Solana payout address is 9Kz3tXKeEnXR1qGmjpJKsx7GTRuomF5kxV9oEAxbmWcQ.

@ralyodio
ralyodio merged commit e5af9a4 into profullstack:master Sep 11, 2026
4 checks passed
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