Skip to content

Commit 6cebfef

Browse files
authored
[evm] Evm runs (#1099)
* Show chain id when checking proposals * Reduce number of optimizations to 200 in order to defeat the Spurious Dragon
1 parent f72c0d9 commit 6cebfef

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

contract_manager/scripts/check_proposal.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function main() {
8787
JSON.stringify(guardianSet)
8888
);
8989
console.log(
90-
`Address:\t\t${address}\nproxy digest:\t\t${proxyDigest}\nimplementation digest:\t${implementationDigest} \nguardian set index:\t${currentIndex} \nguardian set:\t\t${guardianSetDigest}`
90+
`${chain.getId()} Address:\t\t${address}\nproxy digest:\t\t${proxyDigest}\nimplementation digest:\t${implementationDigest} \nguardian set index:\t${currentIndex} \nguardian set:\t\t${guardianSetDigest}`
9191
);
9292
}
9393
}
@@ -107,7 +107,7 @@ async function main() {
107107
const contract = new EvmContract(chain, address);
108108
const code = await contract.getCodeDigestWithoutAddress();
109109
// this should be the same keccak256 of the deployedCode property generated by truffle
110-
console.log(`Address:${address} digest:${code}`);
110+
console.log(`${chain.getId()} Address:${address} digest:${code}`);
111111
}
112112
}
113113
}
@@ -125,7 +125,7 @@ async function main() {
125125
const code = await chain.getCode(Number(codeId));
126126
// this should be the same checksums.txt in our release file
127127
console.log(
128-
`Code Id:${codeId} digest:${createHash("sha256")
128+
`${chain.getId()} Code Id:${codeId} digest:${createHash("sha256")
129129
.update(code)
130130
.digest("hex")}`
131131
);

target_chains/ethereum/contracts/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 = 2000
4+
optimizer_runs = 200
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

target_chains/ethereum/contracts/hardhat.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module.exports = {
107107
settings: {
108108
optimizer: {
109109
enabled: true,
110-
runs: 2000,
110+
runs: 200,
111111
},
112112
},
113113
},

target_chains/ethereum/contracts/truffle-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737
settings: {
3838
optimizer: {
3939
enabled: true,
40-
runs: 2000,
40+
runs: 200,
4141
},
4242
},
4343
},

0 commit comments

Comments
 (0)