Content
@
0 reply
0 recast
2 reactions
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
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
horsefacts
@horsefacts.eth
Banteg’s right, linked libraries should be a last resort. In many cases it’s simpler to extract a helper contract: basically the same thing without the weirdness of linked libs.
1 reply
0 recast
2 reactions
iain
@iain
One of the benefits of external contracts is the linker would be able to replace the address statically but now with immutable variables that’s less important. Are there any other benefits I’m missing?
0 reply
0 recast
0 reaction