Sfoglia il codice sorgente

[eth]: Improve optimization runs to 10000 (#406)

* Update a deprecated state var comment

* Improve optimization runs 10000
Ali Behjati 3 anni fa
parent
commit
f8447f871e

+ 1 - 2
ethereum/contracts/pyth/PythState.sol

@@ -30,8 +30,7 @@ contract PythStorage {
         // with a lower or equal sequence number will be discarded. This prevents double-execution,
         // and also makes sure that messages are executed in the right order.
         uint64 lastExecutedGovernanceSequence;
-        // Mapping of cached price information
-        // priceId => PriceInfo
+        // After a backward-incompatible change in PriceFeed this mapping got deprecated.
         mapping(bytes32 => PythDeprecatedStructs.DeprecatedPriceInfoV2) _deprecatedLatestPriceInfoV2;
         // Index of the governance data source, increased each time the governance data source
         // changes.

+ 1 - 1
ethereum/foundry.toml

@@ -1,7 +1,7 @@
 [profile.default]
 solc_version = '0.8.4'
 optimizer = true
-optimizer_runs = 1000
+optimizer_runs = 10000
 src = 'contracts'
 # We put the tests into the forge-test directory (instead of test) so that
 # truffle doesn't try to build them

+ 1 - 1
ethereum/truffle-config.js

@@ -230,7 +230,7 @@ module.exports = {
       settings: {
         optimizer: {
           enabled: true,
-          runs: 1000,
+          runs: 10000,
         },
       },
     },