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

* Update a deprecated state var comment

* Improve optimization runs 10000
This commit is contained in:
Ali Behjati 2022-11-30 15:56:44 +01:00 committed by GitHub
parent 33f5b8a5bf
commit f8447f871e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -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.

View File

@ -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

View File

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