lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Jacob/evaluate cleanup

Open Jac0xb opened this issue 9 months ago • 0 comments

PR

  • Clean up evaluate macros, reducing their complexity, move log logic into AssertionResult implementation.

  • Improve program owner checks for token (duplicate checks) and mint assertions.

  • Create checked_get_slice util function and replace pleaces where there are checked slice gets.

  • Cleanup BubblegumTreeConfigAssertion, MintAccountAssertion, TokenAccountAssertion by using try_from_slice and try_from_slice_pubkey utility functions and making unpack_coption_u64 and unpack_coption_pubkey take offsets.

  • Add CU ceiling asserts to simple tests to ensure code changes don't increase CU use.

Jac0xb avatar May 16 '24 06:05 Jac0xb