Add deployed bytecode retrieval mitigation#8282
Conversation
|
Current dependencies on/for this PR: This stack of pull requests is managed by Graphite. |
|
Semgrep found 1
When working with web applications that involve rendering user-generated content, it's important to properly escape any HTML content to prevent Cross-Site Scripting (XSS) attacks. In Go, the |
d2dfe25 to
ca9e5cd
Compare
e7b892d to
d8b1bfd
Compare
6e9ff00 to
5b45b09
Compare
5441f06 to
713b79e
Compare
5b45b09 to
1c5bc07
Compare
WalkthroughWalkthroughThe recent changes involve integrating Ethereum and Optimism RPC clients into the binding generation process for smart contracts. New global variables for RPC URLs have been added, and the codebase now includes the functionality to compare deployed bytecode with RPC data. This ensures that the generated bindings match the actual deployed contracts on Ethereum and Optimism networks. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ? TipsChat with CodeRabbit Bot (
|
713b79e to
1df8707
Compare
1c5bc07 to
296a828
Compare
1df8707 to
45375b2
Compare
296a828 to
c0b5253
Compare
hamdiallam
left a comment
There was a problem hiding this comment.
Looks good as well. Same feedback as the previous PR with regards to Crit usage within the application
45375b2 to
08c5c83
Compare
c0b5253 to
b1a3dd0
Compare
|
Semgrep found 6 Named return arguments to functions must be appended with an underscore ( Semgrep found 1
Inputs to functions must be prepended with an underscore ( |
08c5c83 to
6b3ec28
Compare
b1a3dd0 to
6901d27
Compare
6b3ec28 to
d46de62
Compare
b3c7bfb to
5a9e6a4
Compare
6b0fd49 to
443ce2f
Compare
5a9e6a4 to
387d992
Compare
443ce2f to
63c78f5
Compare
387d992 to
68a0655
Compare
63c78f5 to
c09b84a
Compare
68a0655 to
c549d3d
Compare
c09b84a to
9bba7b9
Compare
c549d3d to
dba53cc
Compare
9bba7b9 to
44b836a
Compare
dba53cc to
725ad1a
Compare
44b836a to
bc3062d
Compare
bc3062d to
81951e2
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #8282 +/- ##
===========================================
+ Coverage 34.61% 39.51% +4.90%
===========================================
Files 167 102 -65
Lines 7162 3358 -3804
Branches 1212 438 -774
===========================================
- Hits 2479 1327 -1152
+ Misses 4532 1957 -2575
+ Partials 151 74 -77
Flags with carried forward coverage won't be shown. Click here to find out more. |

This PR will query OP mainnet for the contract's deployed bytecode and compare it to the bytecode sourced from ETH mainnet. Because the added contracts from #8281 are all deterministically deployed, the address for the contracts are the same across networks. The thinking of the this mitigation is: if the deployed bytecode on chain A differ from B, then there might be a chain specific consideration that's not accounted for and may affect the validity of using ETH mainnet's deployed bytecode on any OP chain