Skip to content

feat: optimize gas usage in MurkyBase.sol#28

Open
JunaidCD wants to merge 1 commit intodmfxyz:mainfrom
JunaidCD:main
Open

feat: optimize gas usage in MurkyBase.sol#28
JunaidCD wants to merge 1 commit intodmfxyz:mainfrom
JunaidCD:main

Conversation

@JunaidCD
Copy link

  • Use calldata instead of memory for verifyProof parameter (~1,900 gas savings)
  • Replace require strings with custom error SingleLeaf (~900 gas savings)
  • Update test files to use custom error selector
  • Enable FFI in foundry.toml for standardized tests

- Use calldata instead of memory for verifyProof parameter (~1,900 gas savings)
- Replace require strings with custom error SingleLeaf (~900 gas savings)
- Update test files to use custom error selector
- Enable FFI in foundry.toml for standardized tests
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