Skip to content

fix: propagate pay dataSuffix to sendCalls attribution#255

Merged
spencerstock merged 1 commit intomasterfrom
fix/pay-datasuffix-attribution
Mar 20, 2026
Merged

fix: propagate pay dataSuffix to sendCalls attribution#255
spencerstock merged 1 commit intomasterfrom
fix/pay-datasuffix-attribution

Conversation

@spencerstock
Copy link
Copy Markdown
Collaborator

Summary

  • pass dataSuffix through pay() into translatePaymentToSendCalls(...) so wallet payloads include capabilities.attribution.suffix
  • validate dataSuffix format in payment validation path before request translation
  • add/update payment translation and pay tests to cover attribution suffix propagation and invalid suffix handling

Test plan

  • node packages/account-sdk/compile-assets.cjs
  • yarn workspace @base-org/account typecheck
  • yarn workspace @base-org/account test --run
  • yarn lint
  • yarn workspace @base-org/account test --run src/interface/payment/pay.test.ts src/interface/payment/utils/translatePayment.test.ts

Made with Cursor

Ensure pay() validates dataSuffix and passes it through translatePaymentToSendCalls so requests include capabilities.attribution.suffix on the actual sendCalls payload.

Made-with: Cursor
@cb-heimdall
Copy link
Copy Markdown
Collaborator

cb-heimdall commented Mar 17, 2026

✅ Heimdall Review Status

Requirement Status More Info
Reviews 2/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@spencerstock spencerstock merged commit 71801e9 into master Mar 20, 2026
9 checks passed
@spencerstock spencerstock deleted the fix/pay-datasuffix-attribution branch March 20, 2026 15:45
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.

4 participants