20,000 USDC
View results
Submission Details
Severity: gas
Valid

abi.encode() is less efficient than abi.encodePacked()

Summary In reality, abi.encode() is generally more gas-efficient compared to abi.encodePacked(). The reason for this is that abi.encode() includes the type information for each parameter, which allows for more accurate decoding on the receiving end. However, this additional type information also results in a larger encoded output.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.