Skip to content

Commit f8447f8

Browse files
authored
[eth]: Improve optimization runs to 10000 (#406)
* Update a deprecated state var comment * Improve optimization runs 10000
1 parent 33f5b8a commit f8447f8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

ethereum/contracts/pyth/PythState.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ contract PythStorage {
3030
// with a lower or equal sequence number will be discarded. This prevents double-execution,
3131
// and also makes sure that messages are executed in the right order.
3232
uint64 lastExecutedGovernanceSequence;
33-
// Mapping of cached price information
34-
// priceId => PriceInfo
33+
// After a backward-incompatible change in PriceFeed this mapping got deprecated.
3534
mapping(bytes32 => PythDeprecatedStructs.DeprecatedPriceInfoV2) _deprecatedLatestPriceInfoV2;
3635
// Index of the governance data source, increased each time the governance data source
3736
// changes.

ethereum/foundry.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[profile.default]
22
solc_version = '0.8.4'
33
optimizer = true
4-
optimizer_runs = 1000
4+
optimizer_runs = 10000
55
src = 'contracts'
66
# We put the tests into the forge-test directory (instead of test) so that
77
# truffle doesn't try to build them

ethereum/truffle-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ module.exports = {
230230
settings: {
231231
optimizer: {
232232
enabled: true,
233-
runs: 1000,
233+
runs: 10000,
234234
},
235235
},
236236
},

0 commit comments

Comments
 (0)