Skip to content

fix: add missing receipt fields to TurboUploadResponse#6

Open
vilenarios wants to merge 1 commit intoalphafrom
PE-9054-add-missing-receipt-fields
Open

fix: add missing receipt fields to TurboUploadResponse#6
vilenarios wants to merge 1 commit intoalphafrom
PE-9054-add-missing-receipt-fields

Conversation

@vilenarios
Copy link
Copy Markdown

Summary

  • Adds timestamp, signature, public, version, and deadline_height to TurboUploadResponse and TurboUploadStatus dataclasses
  • Extracts receipt fields in _upload_single() from API response JSON (previously discarded)
  • Extracts receipt fields in get_status() from chunked upload receipt dict
  • Carries all fields through the TurboUploadStatusTurboUploadResponse conversion in chunked upload()
  • Updates tests with mock receipt fields and assertions

Test plan

  • All 53 tests pass (pytest tests/test_turbo.py tests/test_chunked.py)
  • Integration test: verify receipt fields are populated on a real upload

🤖 Generated with Claude Code

The upload API returns timestamp, signature, public, version, and
deadlineHeight as part of the signed receipt, but these fields were
silently discarded during response parsing in both single and chunked
upload paths.

- Add receipt fields to TurboUploadResponse and TurboUploadStatus
- Extract fields in _upload_single() from API response JSON
- Extract fields in get_status() from chunked receipt dict
- Carry fields through status→response conversion in upload()
- Update tests with new fields and assertions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@fedellen fedellen left a comment

Choose a reason for hiding this comment

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

LGTM!

@fedellen
Copy link
Copy Markdown

@coderabbitai review

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