Summary
It has been suggested that instantiating an Attestation struct using {} notation could save gas. This ticket aims to validate this claim and, if confirmed, apply the optimization across the codebase.
Objectives
-
Research & benchmark
- Compare gas costs of instantiating an
Attestation using {} notation vs. standard assignment.
- Provide concrete gas measurements to determine if the optimization is significant.
-
Apply optimization (if confirmed)
- Update all instances where
Attestation is instantiated to use {} notation if it proves beneficial.
- Ensure no unintended side effects in contract behaviour.
Impact
- Potential gas savings across Verax contracts.
- Improved efficiency for attestation-related transactions.