Skip to content

fix(client): include public DataMap in upload payment#121

Merged
jacderida merged 1 commit into
rc-2026.6.2from
fix/public-upload-datamap-batch-rc-2026.6.2
Jun 16, 2026
Merged

fix(client): include public DataMap in upload payment#121
jacderida merged 1 commit into
rc-2026.6.2from
fix/public-upload-datamap-batch-rc-2026.6.2

Conversation

@mickvandijke

Copy link
Copy Markdown
Contributor

Summary

Public file uploads now include the serialized DataMap in the same upload chunk set before payment selection. This means both wave-batch and merkle payment paths pay for the shareable public DataMap address as part of the upload, instead of uploading the file body first and then doing a separate data_map_store payment.

The CLI ant file upload --public now uses this public upload path directly and reports the returned data_map_address from the batch-paid upload result.

Why

Previously the direct CLI public upload path paid for file chunks first, then stored the public DataMap in a second payment/store step. That made public uploads inconsistent with the external-signer prepare path and left the DataMap outside the intended batch payment.

SemVer

Bug fix; no public ant-client API break expected.

Validation

  • cargo fmt --all -- --check
  • git diff --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test -p ant-core --test e2e_file test_public_file_upload_direct_batches_datamap --features devnet -- --nocapture
  • cargo test -p ant-cli

Store public upload DataMaps through the same file upload chunk set so wave and merkle payments cover the shareable DataMap address instead of paying for it in a second post-upload call.

SemVer: bug fix; no public ant-client API break expected.
@jacderida
jacderida merged commit b879e53 into rc-2026.6.2 Jun 16, 2026
12 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