Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eigen-client-m1): Add dummy bridge #41

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tx1 error
gianbelinche committed Jan 2, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 4b01c2013e3193569a1ecec40feb616cd8b40202
13 changes: 10 additions & 3 deletions da-contracts/contracts/da-layers/eigenda/EigenDAL1Validator.sol
Original file line number Diff line number Diff line change
@@ -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(
@@ -13,9 +15,14 @@
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

GitHub Actions / lint

Variable "stateDiffHash" is unused

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

GitHub Actions / lint

Variable "stateDiffHash" is unused

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

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);
}
}