Skip to content

Commit 4734673

Browse files
committed
initial fixes
1 parent 184e5fd commit 4734673

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/content/data-streams/tutorials/solana-onchain-report-verification.mdx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ In your program's manifest file (`programs/example_verify/Cargo.toml`), add the
150150

151151
```toml
152152
[dependencies]
153-
chainlink_solana_data_streams = { git = "https://github.com/smartcontractkit/chainlink-solana", branch = "develop", subdir = "contracts/crates/chainlink-solana-data-streams" }
154-
data-streams-report = { git = "https://github.com/smartcontractkit/data-streams-sdk.git", subdir = "rust/crates/report" }
153+
chainlink_solana_data_streams = { git = "https://github.com/smartcontractkit/chainlink-solana", branch = "develop" }
154+
chainlink_data_streams_report = { git = "https://github.com/smartcontractkit/data-streams-sdk.git" }
155155

156156
# Additional required dependencies
157157
anchor-lang = "0.29.0"
@@ -165,15 +165,14 @@ Navigate to your program main file (`programs/example_verify/src/lib.rs`). This
165165
// Import required dependencies for Anchor, Solana, and Data Streams
166166
use anchor_lang::prelude::*;
167167
use anchor_lang::solana_program::{
168+
instruction::Instruction,
168169
program::{get_return_data, invoke},
169170
pubkey::Pubkey,
170-
instruction::Instruction,
171171
};
172172
// NOTE: Adjust for your report version
173-
use data_streams_report::report::v3::ReportDataV3;
173+
use chainlink_data_streams_report::report::v3::ReportDataV3;
174174
use chainlink_solana_data_streams::VerifierInstructions;
175175

176-
177176
declare_id!("<YOUR_PROGRAM_ID>");
178177

179178
#[program]
@@ -456,13 +455,13 @@ In this section, you'll write a client script to interact with your deployed pro
456455

457456
**Note**: The Program IDs and Access Controller Accounts are available on the [Stream Addresses](/data-streams/crypto-streams) page.
458457

459-
1. Add the `snappy` dependency to your project:
458+
1. Install the required dependencies for your project. Make sure the client-side `@coral-xyz/anchor` version matches your program's `anchor-lang` version (0.29.0):
460459

461460
```bash
462-
yarn add snappy
461+
yarn add @coral-xyz/[email protected] @solana/web3.js snappy
463462
```
464463

465-
`snappy` is a compression library that is used to compress the report data.
464+
**Important**: Using mismatched Anchor versions between your program and client can cause type incompatibilities and runtime errors.
466465

467466
1. Execute the test script to interact with your program:
468467

0 commit comments

Comments
 (0)