@@ -291,18 +291,18 @@ contract GasArchive is Initializable, OwnableUpgradeable, IGasDataProvider, UUPS
291291 /// @dev Verifies the proof data of the sequencing chain's proof against the confirmed seq chain block hash
292292 /// @param seqChainID The sequencing chain ID
293293 /// @param sendRoot The send root stored in the the Arbitrum Outbox contract that the eth proof was generated for, unused if seqChainID == settlementChainID
294- /// @param ethBlockHeader RLP-encoded Ethereum block header, unused if seqChainID == settlementChainID
295- /// @param ethAccountProof Merkle proof of the bridge contract account, unused if seqChainID == settlementChainID
296- /// @param ethStorageProof Merkle proof of the storage slot containing the block hash, unused if seqChainID == settlementChainID
294+ /// @param seqParentBlockHeader RLP-encoded block header of the parent chain of the sequencing chain , unused if seqChainID == settlementChainID
295+ /// @param seqParentAccountProof Merkle proof of the bridge contract account, unused if seqChainID == settlementChainID
296+ /// @param seqParentStorageProof Merkle proof of the storage slot containing the block hash, unused if seqChainID == settlementChainID
297297 /// @param seqBlockHeader RLP-encoded sequencing chain block header
298298 /// @param seqAccountProof Merkle proof of the GasAggregator account
299299 /// @param seqStorageProof Merkle proof of the epoch data storage slot
300300 function confirmEpochDataHash (
301301 uint256 seqChainID ,
302302 bytes32 sendRoot ,
303- bytes calldata ethBlockHeader ,
304- bytes [] calldata ethAccountProof ,
305- bytes [] calldata ethStorageProof ,
303+ bytes calldata seqParentBlockHeader ,
304+ bytes [] calldata seqParentAccountProof ,
305+ bytes [] calldata seqParentStorageProof ,
306306 bytes calldata seqBlockHeader ,
307307 bytes [] calldata seqAccountProof ,
308308 bytes [] calldata seqStorageProof
@@ -315,15 +315,15 @@ contract GasArchive is Initializable, OwnableUpgradeable, IGasDataProvider, UUPS
315315 }
316316
317317 if ($.seqChainSettlesToBase[seqChainID]) {
318- require ($.setBlockHashes[keccak256 (ethBlockHeader )], InvalidSetBlockHeader ());
318+ require ($.setBlockHashes[keccak256 (seqParentBlockHeader )], InvalidSetBlockHeader ());
319319 } else {
320- require ($.ethBlockHashes[keccak256 (ethBlockHeader )], InvalidEthBlockHeader ());
320+ require ($.ethBlockHashes[keccak256 (seqParentBlockHeader )], InvalidEthBlockHeader ());
321321 }
322322
323323 bytes32 verifiedSeqChainBlockHash = _getSlotValueFromProof ({
324- blockHeader: ethBlockHeader ,
325- accountProof: ethAccountProof ,
326- storageProof: ethStorageProof ,
324+ blockHeader: seqParentBlockHeader ,
325+ accountProof: seqParentAccountProof ,
326+ storageProof: seqParentStorageProof ,
327327 account: $.seqChainOutbox[seqChainID],
328328 storageSlot: keccak256 (abi.encode (sendRoot, SEND_ROOT_STORAGE_SLOT))
329329 });
@@ -427,7 +427,7 @@ contract GasArchive is Initializable, OwnableUpgradeable, IGasDataProvider, UUPS
427427 stack: _RLPItemsFromProofBytes (accountProof)
428428 }).toRlpItem ();
429429
430- // If the account does not exist, return the hash of an empty trie .
430+ // If the account does not exist in the proof, revert with AccountDoesNotExistInProof error .
431431 require (accountRlp.len > 0 , AccountDoesNotExistInProof ());
432432
433433 RLPReader.RLPItem memory slotContents = MerklePatriciaProofVerifier.extractProofValue ({
0 commit comments