Throwing errors in assembly is a simple way to further improve your gas costs. The following snippet shows two contracts performing the same data validation, one using solidity and another one using inline assembly, where the latter is more optimal than the former 👇
- 1 reply
- 0 recasts
- 0 reactions
Storage buckets allow you to point to explicit storage slots of your choosing, not relying on the compiler to perform such task. A great pattern if you want to avoid painful situations where a contract's storage might get corrupted during an upgrade👇
- 1 reply
- 0 recasts
- 0 reactions
yup
- 0 replies
- 0 recasts
- 0 reactions
