Skip to content

Commit

Permalink
fix arbitrum prover block fields validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jackchuma committed Nov 18, 2024
1 parent 51496e3 commit 9a83a45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/src/provers/ArbitrumProver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ contract ArbitrumProver is IProver {
function _extractL2StateRootAndTimestamp(bytes memory encodedBlockArray) private pure returns (bytes32, uint256) {
RLPReader.RLPItem[] memory blockFields = encodedBlockArray.readList();

if (blockFields.length != 16) {
if (blockFields.length < 15) {
revert InvalidBlockFieldRLP();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
]
},
"sendRoot": "0x0f569fc75bd38d6c9ee1148b16bd5aff7f8611579998f893dc2886ab557d99fd",
"encodedBlockArray": "0xf9021fa0e0c6138d78f4c022d9fab75ae1e0eba6c6c0fd06808ac9ffeed2ac8966e792cca01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794a4b000000000000000000073657175656e636572a08036e05966aa8e2d721a54b9ac83ad99720b27602280281c222caeee81eaca02a062c3521eabe15b9cbddecee828596df39afc5efff47029ad551c85e3bc914db5a00b759a01185485cfc62252c00e92096bf763c0c05993ca2efb0f38939509a554b9010000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000002000000040000000000000000000000008000000000000000000000000000000000000000000020000000000000000000800000000000000000000100000020000000000048080000000000020000200000000000010000000000000000000000000000000000000040040000000040000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000018405dc181b87040000000000008303efb684673acbb1a00f569fc75bd38d6c9ee1148b16bd5aff7f8611579998f893dc2886ab557d99fda0000000000000ccfb00000000006c575700000000000000200000000000000000880000000000104bc0",
"encodedBlockArray": "0xf88580840130297684039387008318a7408467372e9880a0936e360c1189eceafbd2ebe9fa1da9f4841f32630b7a41bcfaa2d8ce03a0731388000000000000000081fea056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b4218080a04df1523924f5aef18229a2d0d2f0599e50b37dedf5d4679598357489ce299a50",
"nodeIndex": "10211"
}

0 comments on commit 9a83a45

Please sign in to comment.