Skip to content

Commit 423beb6

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/testnet' into staging
# Conflicts: # docs/1_introduction/1_getting_started.md # docs/3_guides/0_submitting_proofs.md # docs/3_guides/2_integrating_aligned_into_your_application.md # examples/zkquiz/quiz/program/Cargo.lock
2 parents 8ae73bc + 84a409a commit 423beb6

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

docs/3_guides/3_validating_public_input.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,15 @@ pragma solidity ^0.8.12;
4242
4343
contract FibonacciValidator {
4444
address public alignedServiceManager;
45-
address public paymentServiceAddr;
4645
bytes32 public fibonacciProgramId;
4746
4847
bytes32 public fibonacciProgramIdCommitment =
4948
0x069ed9f3972550a2901523723f4beb5e240749dcafa30e1623d0778e17d69d70;
5049
5150
event FibonacciNumbers(uint32 fibN, uint32 fibNPlusOne);
5251
53-
constructor(address _alignedServiceManager, address _paymentServiceAddr) {
52+
constructor(address _alignedServiceManager) {
5453
alignedServiceManager = _alignedServiceManager;
55-
paymentServiceAddr = _paymentServiceAddr;
5654
}
5755
5856
function verifyBatchInclusion(
@@ -80,15 +78,14 @@ contract FibonacciValidator {
8078
bytes memory proofIsIncluded
8179
) = alignedServiceManager.staticcall(
8280
abi.encodeWithSignature(
83-
"verifyBatchInclusion(bytes32,bytes32,bytes32,bytes20,bytes32,bytes,uint256,address)",
81+
"verifyBatchInclusion(bytes32,bytes32,bytes32,bytes20,bytes32,bytes,uint256)",
8482
proofCommitment,
8583
pubInputCommitment,
8684
programIdCommitment,
8785
proofGeneratorAddr,
8886
batchMerkleRoot,
8987
merkleProof,
90-
verificationDataBatchIndex,
91-
paymentServiceAddr
88+
verificationDataBatchIndex
9289
)
9390
);
9491
@@ -149,15 +146,14 @@ require(
149146
bytes memory proofIsIncluded
150147
) = alignedServiceManager.staticcall(
151148
abi.encodeWithSignature(
152-
"verifyBatchInclusion(bytes32,bytes32,bytes32,bytes20,bytes32,bytes,uint256,address)",
149+
"verifyBatchInclusion(bytes32,bytes32,bytes32,bytes20,bytes32,bytes,uint256)",
153150
proofCommitment,
154151
pubInputCommitment,
155152
programIdCommitment,
156153
proofGeneratorAddr,
157154
batchMerkleRoot,
158155
merkleProof,
159-
verificationDataBatchIndex,
160-
paymentServiceAddr
156+
verificationDataBatchIndex
161157
)
162158
);
163159
@@ -196,7 +192,6 @@ To deploy the contract, first you will need to set up the `.env` file in the con
196192
RPC_URL=<rpc_url> #You can use publicnode RPC: https://ethereum-holesky-rpc.publicnode.com
197193
PRIVATE_KEY=<private_key>
198194
ALIGNED_SERVICE_MANAGER_ADDRESS=<service_manager_address> #0x58F280BeBE9B34c9939C3C39e0890C81f163B623 for Holesky
199-
PAYMENT_SERVICE_ADDRESS=<payment_service_address> #0x815aeCA64a974297942D2Bbf034ABEe22a38A003 for Holesky
200195
```
201196

202197
Then, run `make deploy_fibonacci_validator`.

0 commit comments

Comments
 (0)