Skip to content

Commit 1684972

Browse files
committed
fix: update validating-public-example
1 parent 21805ce commit 1684972

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

examples/validating-public-input/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ Block: 2963688
8383
Paid: 0.000727925005095475 ETH (727925 gas * 1.000000007 gwei)
8484
```
8585

86-
> [NOTE]
87-
> The `Contract Address` listed above corresponds to a current valid deployment of the examples contract on the `holesky` testnet.
88-
8986
save the contract address for the next command.
9087

9188
4. `make verify_sp1_batch_inclusion_devnet FIBONACCI_VALIDATOR_ADDRESS=<FIBONACCI_VALIDATOR_ADDRESS> DATA_FILE_NAME=<DATA_FILE_NAME>`

examples/validating-public-input/aligned-integration/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::str::FromStr;
77
use aligned_sdk::common::errors::SubmitError;
88
use aligned_sdk::common::types::Network;
99
use aligned_sdk::common::types::{AlignedVerificationData, ProvingSystemId, VerificationData};
10-
use aligned_sdk::verification_layer::{get_nonce_from_ethereum, submit_and_wait_verification};
10+
use aligned_sdk::verification_layer::{get_nonce_from_batcher, submit_and_wait_verification};
1111
use clap::Parser;
1212
use clap::ValueEnum;
1313
use env_logger::Env;
@@ -215,7 +215,7 @@ async fn main() -> Result<(), SubmitError> {
215215
// Set a fee of 0.01 Eth
216216
let max_fee = U256::from(100_000_000_000_000u128);
217217

218-
let nonce = get_nonce_from_ethereum(&args.rpc_url, wallet.address(), network.clone())
218+
let nonce = get_nonce_from_batcher(network.clone(), wallet.address())
219219
.await
220220
.expect("Failed to get next nonce");
221221

examples/validating-public-input/contracts/src/FibonacciValidator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ contract FibonacciValidator {
88
bytes32 public fibonacciProgramIdCommitmentSp1 = 0xc91d23fc3b1d24ecb241fbd501162734584f7c9f15ee5c95c712419206797a61;
99

1010
bytes32 public fibonacciProgramIdCommitmentRisc0 =
11-
0x52075f80c0b914b6cb8d86a2827b30b1252b58f2aa0173b993188650a538d5c5;
11+
0xaca1ccfd1da4139fd1f45604ffa39fd5cbb89d2b382c076143d515b2ec152173;
1212

1313
error InvalidProgramID(string verifier, bytes32 submitted, bytes32 required); //051ce67c
1414

0 commit comments

Comments
 (0)