nodeset-org / constellation

GNU General Public License v3.0
6 stars 0 forks source link

Excessive Gas Usage in `xrETH` Due to Debugging `console.log` Statements #428

Open zZoMROT opened 17 hours ago

zZoMROT commented 17 hours ago

Description:

The current implementation of xrETH contains four console.log debug statements. These statements are resulting in unnecessary static calls to an address where no code exists. This redundancy is causing a notable increase in gas consumption:

Impact:

This results in a total overhead of approximately 2700 gas per method call that relies on this logic.

Request:

Please update implementation to remove or disable these debug console.log statements to optimize gas usage, benefiting all calls that invoke this method.

Снимок экрана 2024-11-13 в 21 27 02
VVander commented 16 hours ago

@zZoMROT thanks for reporting! Looks like this was an oversight from the local project on the machine where we did the deployment since this specific file is part of the OZ libraries and is ignored in our repo. This should be fixed in the upcoming 1.0.1 update.