Use bytes.concat()
on bytes instead of abi.encodePacked()
for clearer semantic meaning
Starting with version 0.8.4, Solidity has the bytes.concat()
function, which allows one to concatenate a list of bytes/strings, without extra padding. Using this function rather than abi.encodePacked()
makes the intended operation more clear, leading to less reviewer confusion.
Informational
Manual
Use bytes.concat()
on bytes instead of abi.encodePacked()
for clearer semantic meaning
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.