MyCut

First Flight #23
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

PUSH0 not supported

Summary

The Solidity contract does not utilize the PUSH0 opcode, which could potentially optimize gas usage in certain scenarios. However, as of the current Solidity version (0.8.20), PUSH0 is not natively supported.

Vulnerability Details

PUSH0 is an EVM opcode introduced in the Ethereum Shanghai upgrade, allowing zero to be pushed onto the stack with minimal gas cost.

pragma solidity ^0.8.20;

As of Solidity 0.8.20, PUSH0 is not directly supported in Solidity source code, limiting potential gas optimizations.

Impact

Without PUSH0, contracts may incur slightly higher gas costs when pushing zero onto the stack.

Tools Used

Manual Review

Recommendation

Consider using inline assembly to manually implement PUSH0 where applicable, ensuring careful testing and security considerations.

Updates

Lead Judging Commences

equious Lead Judge 12 months ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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