Content pfp
Content
@
0 reply
0 recast
2 reactions

horsefacts pfp
horsefacts
@horsefacts.eth
- Keep all strings under 32 bytes - Replace modifiers with internal functions - Linked libraries 😈 (cc @maks) https://warpcast.com/maks/0xb0fda8ff
7 replies
3 recasts
23 reactions

Matt Solomon pfp
Matt Solomon
@msolomon.eth
- Dedupe calls and other ABI encoding into helper functions (encoding+checks get bloaty) - Dedupe any other logic into functions - Be smart with calldata/memory/storage keywords, avoid unneeded copies - Avoid structs, encode data manually, especially if structs fit in one word
1 reply
0 recast
4 reactions

Kevin pfp
Kevin
@typedarray.eth
What's the explanation for modifiers vs interval functions? I (naively) figured modifiers were syntactic sugar for functions.
1 reply
0 recast
1 reaction

Spencer Graham 🧢 pfp
Spencer Graham 🧢
@spengrah.eth
this should be obvious but based on what I see in a bunch of contracts it’s not: - Use custom errors instead of require error strings
0 reply
0 recast
2 reactions

m4rio pfp
m4rio
@m4rio
using storage variables instead of copying everything to memory. 🤌
1 reply
0 recast
1 reaction

banteg pfp
banteg
@banteg
external libraries are notoriously hard to debug in solidity since they don't follow the normal calling convention. language devs are unhappy with them too, so it's probably best to avoid them.
1 reply
0 recast
2 reactions

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
What was your journey for mastering Solidity?
1 reply
0 recast
2 reactions

Hydrogen pfp
Hydrogen
@hydrogen
There's a 99% chance your ERC 721 doesn't need the enumerable extension
0 reply
0 recast
1 reaction