Skip to content

Commit

Permalink
Add BeaconChainProofsHarness
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanc committed Jul 28, 2023
1 parent 8cbe4b6 commit 48358fa
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/test/harnesses/BeaconChainProofsHarness.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.12;

import "../../contracts/libraries/BeaconChainProofs.sol";

contract BeaconChainProofsHarness {
function verifyValidatorFields(
uint40 validatorIndex,
bytes32 beaconStateRoot,
bytes calldata proof,
bytes32[] calldata validatorFields) external view {
BeaconChainProofs.verifyValidatorFields(
validatorIndex,
beaconStateRoot,
proof,
validatorFields
);
}
}

0 comments on commit 48358fa

Please sign in to comment.