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
33 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