Skip to content

Commit

Permalink
Fix tx1 error
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Jan 2, 2025
1 parent d62bd27 commit 4b01c20
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions da-contracts/contracts/da-layers/eigenda/EigenDAL1Validator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
pragma solidity 0.8.24;

import {IL1DAValidator, L1DAValidatorOutput} from "../../IL1DAValidator.sol";
import {ValL1DAWrongInputLength} from "../../DAContractsErrors.sol";


contract EigenDAL1Validator is IL1DAValidator {
function checkDA(
Expand All @@ -13,9 +15,14 @@ contract EigenDAL1Validator is IL1DAValidator {
uint256 maxBlobsSupported
) external override returns (L1DAValidatorOutput memory output) {
// TODO: Implement real validation logic.
output.stateDiffHash = bytes32(0);
// For Validiums, we expect the operator to just provide the data for us.
// We don't need to do any checks with regard to the l2DAValidatorOutputHash.
if (_operatorDAInput.length < 32) {
revert ValL1DAWrongInputLength(_operatorDAInput.length, 32);
}
bytes32 stateDiffHash = abi.decode(_operatorDAInput[:32], (bytes32));

Check failure on line 23 in da-contracts/contracts/da-layers/eigenda/EigenDAL1Validator.sol

View workflow job for this annotation

GitHub Actions / lint

Variable "stateDiffHash" is unused

Check failure on line 23 in da-contracts/contracts/da-layers/eigenda/EigenDAL1Validator.sol

View workflow job for this annotation

GitHub Actions / lint

Variable "stateDiffHash" is unused

Check failure on line 23 in da-contracts/contracts/da-layers/eigenda/EigenDAL1Validator.sol

View workflow job for this annotation

GitHub Actions / lint

Variable "stateDiffHash" is unused

output.blobsLinearHashes = new bytes32[](0);
output.blobsOpeningCommitments = new bytes32[](0);
output.blobsLinearHashes = new bytes32[](maxBlobsSupported);
output.blobsOpeningCommitments = new bytes32[](maxBlobsSupported);
}
}

0 comments on commit 4b01c20

Please sign in to comment.