Skip to content

feat: add support for tuple types in space calculation#3744

Merged
jacobcreech merged 5 commits intosolana-foundation:masterfrom
BretasArthur1:master
Jun 30, 2025
Merged

feat: add support for tuple types in space calculation#3744
jacobcreech merged 5 commits intosolana-foundation:masterfrom
BretasArthur1:master

Conversation

@BretasArthur1
Copy link
Copy Markdown
Contributor

@BretasArthur1 BretasArthur1 commented Jun 14, 2025

This commit introduces the ability to handle tuple types in the space calculation logic.

  • A new TestTupleStruct is added to validate various tuple configurations, including nested and option types, ensuring accurate space calculations through comprehensive unit tests.

Helps to Close: #3704

This commit introduces the ability to handle tuple types in the space calculation logic. A new `TestTupleStruct` is added to validate various tuple configurations, including nested and option types, ensuring accurate space calculations through comprehensive unit tests.
@vercel
Copy link
Copy Markdown

vercel bot commented Jun 14, 2025

@BretasArthur1 is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@Aursen Aursen added Minor Minor breaking change lang labels Jun 16, 2025
@Aursen
Copy link
Copy Markdown
Collaborator

Aursen commented Jun 16, 2025

@BretasArthur1 Can you fix the rustfmt? After lgtm

@BretasArthur1
Copy link
Copy Markdown
Contributor Author

sure

@BretasArthur1
Copy link
Copy Markdown
Contributor Author

done @Aursen

Copy link
Copy Markdown
Collaborator

@jacobcreech jacobcreech left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@jacobcreech jacobcreech merged commit 0878f53 into solana-foundation:master Jun 30, 2025
103 of 105 checks passed
WilfredAlmeida pushed a commit to KartikSoneji/anchor that referenced this pull request Oct 22, 2025
…tion#3744)

* feat: add support for tuple types in space calculation

This commit introduces the ability to handle tuple types in the space calculation logic. A new `TestTupleStruct` is added to validate various tuple configurations, including nested and option types, ensuring accurate space calculations through comprehensive unit tests.

* clean up unnacessary comments

* chore: fmt fix

* fix: fixing test assert

* fix: fixing test assert
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
…tion#3744)

* feat: add support for tuple types in space calculation

This commit introduces the ability to handle tuple types in the space calculation logic. A new `TestTupleStruct` is added to validate various tuple configurations, including nested and option types, ensuring accurate space calculations through comprehensive unit tests.

* clean up unnacessary comments

* chore: fmt fix

* fix: fixing test assert

* fix: fixing test assert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang Minor Minor breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

InitSpace macro do not support complex Option<> types.

3 participants