Skip to content

Commit e416edf

Browse files
committed
fix: pass uint8 instead of uint256 in verifyProofInclusion to match the proof commitments
1 parent 38fd3b3 commit e416edf

File tree

11 files changed

+134
-166
lines changed

11 files changed

+134
-166
lines changed

aggregation_mode/abi/AlignedProofAggregationService.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/scripts/anvil/state/eigenlayer-deployed-anvil-state.json

Lines changed: 119 additions & 154 deletions
Large diffs are not rendered by default.

contracts/scripts/anvil/state/risc0-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/scripts/anvil/state/sp1-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/src/core/AlignedProofAggregationService.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ contract AlignedProofAggregationService is
118118
/// @return bool Returns true if the computed Merkle root is a recognized valid aggregated proof.
119119
function verifyProofInclusion(
120120
bytes32[] calldata merklePath,
121-
uint256 provingSystemId,
121+
uint8 provingSystemId,
122122
bytes32 programId,
123123
bytes calldata publicInputs
124124
) public view returns (bool) {

contracts/src/core/IAlignedProofAggregationService.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
pragma solidity ^0.8.12;
22

33
interface IAlignedProofAggregationService {
4-
54
/// @notice event that gets emitted after a successful aggregated proof verification
65
event AggregatedProofVerified(bytes32 indexed merkleRoot, bytes32 blobVersionedHash);
76

@@ -31,7 +30,7 @@ interface IAlignedProofAggregationService {
3130

3231
function verifyProofInclusion(
3332
bytes32[] calldata merklePath,
34-
uint256 provingSystemId,
33+
uint8 provingSystemId,
3534
bytes32 programId,
3635
bytes calldata publicInputs
3736
) external view returns (bool);

crates/sdk/abi/AlignedProofAggregationService.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

examples/l2/contracts/src/StateTransition.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ contract StateTransition {
2222
stateRoot = initialStateRoot;
2323
}
2424

25-
function updateState(uint256 provingSystemId, bytes calldata publicInputs, bytes32[] calldata merkleProof)
25+
function updateState(uint8 provingSystemId, bytes calldata publicInputs, bytes32[] calldata merkleProof)
2626
public
2727
onlyOwner
2828
{
2929
bytes memory callData = abi.encodeWithSignature(
30-
"verifyProofInclusion(bytes32[],uint256,bytes32,bytes)",
30+
"verifyProofInclusion(bytes32[],uint8,bytes32,bytes)",
3131
merkleProof,
3232
provingSystemId,
3333
PROGRAM_ID,

examples/l2/crates/l2/abi/StateTransition.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)