Skip to content

Conversation

@jordy25519
Copy link
Contributor

@jordy25519 jordy25519 commented Nov 13, 2025

Changes

  • any structs with zero_copy(unsafe) and u/i128 fields are now marked with legacy_layout macro (rewrites definition to use compat::u128/i128 + adds getter/setters with internal conversions to/from std::primitive types)

Notes

  • newly created accounts should be safe to create with i/u128 fields without the macro
  • devs should be aware of the u128/i128 math now needing an extra conversion. prefer using getter/setter over raw field accessself.scaled_balance()

Complementary PRs

@jordy25519 jordy25519 force-pushed the chore/anchor-32-2 branch 2 times, most recently from ffa533f to f1ab353 Compare November 17, 2025 09:33
@jordy25519 jordy25519 merged commit 2900d2b into chore/anchor-32 Nov 18, 2025
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