Skip to content

Document contractevent sparse map default - #2777

Draft
leighmcculloch wants to merge 1 commit into
mainfrom
contractevent-sparse-map-docs
Draft

Document contractevent sparse map default#2777
leighmcculloch wants to merge 1 commit into
mainfrom
contractevent-sparse-map-docs

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Aug 21, 2026

Copy link
Copy Markdown
Member

What

Document that #[contractevent] events using the default map data format now omit fields with a void value, such as a None Option field, and how to opt out with #[contractevent(sparse = false)].

Why

Rust SDK v28 changes this packing behavior as a breaking change (CAP-86, stellar/rs-soroban-sdk#2008), and the events guide, the example-contracts walkthrough, and the SEP-41 token interface spec all described the old behavior of always writing every field.

@stellar-jenkins-ci

Copy link
Copy Markdown

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.

1 participant