Skip to content

Commit 38cd74b

Browse files
committed
requested changes
1 parent b7a6726 commit 38cd74b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

pages/price-feeds/troubleshoot/svm.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
This reference page is designed to help you troubleshoot common issues you may encounter when using Pyth Price Feeds on SVM chains.
44
Follow the steps provided below to diagnose and resolve the issue.
55

6-
### compilation error[E0277]: the trait bound PriceUpdateV2: anchor_lang::AccountDeserialize is not satisfied
6+
1. `compilation error[E0277]: the trait bound PriceUpdateV2: anchor_lang::AccountDeserialize is not satisfied{:rust}`
77

8-
This error is caused by an `anchor-lang` version mismatch.
9-
Make sure the transitive version of `anchor-lang` brough by [pyth-solana-receiver-sdk](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/solana/pyth_solana_receiver_sdk)
10-
matchers the version of `anchor-lang` of your programs `Cargo.toml`.
8+
This error happens when a program using the [`pyth-solana-receiver-sdk`](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/solana/pyth_solana_receiver_sdk) fails to compile. It is caused by an `anchor-lang` version mismatch.
9+
Make sure the transitive version of `anchor-lang` brought by `pyth-solana-receiver-sdk`
10+
matches the version of `anchor-lang` of your program's `Cargo.toml`.
1111

12-
You can fix it by following steps:
12+
You can fix it by following steps:
1313

14-
- Check the version of `anchor-lang` in your `Cargo.toml` (in the example `0.29.0{:js}`) call it `x.y.z`
15-
- Check the version of `anchor-lang` in the `pyth-solana-receiver-sdk` tree in `Cargo.lock` (in the example `0.30.1{:js}`) call it `a.b.c`
16-
- Run `cargo update -p [email protected] --precise x.y.z{:bash}`
17-
replacing `a.b.c` and `x.y.z` by the versions in the previous steps. For example:\
18-
`cargo update -p [email protected] --precise 0.29.0{:bash}`
14+
- Check the version of [`anchor-lang`](https://github.com/guibescos/anchor-pyth/blob/broken-build/programs/anchor-pyth/Cargo.toml) in your `Cargo.toml` (in the example `0.29.0{:js}`) call it `x.y.z`
15+
- Check the version of `anchor-lang` in the `pyth-solana-receiver-sdk` tree in `Cargo.lock` (in the example `0.30.1{:js}`) call it `a.b.c`
16+
- Run `cargo update -p [email protected] --precise x.y.z{:bash}`
17+
replacing `a.b.c` and `x.y.z` by the versions in the previous steps. For example:\
18+
`cargo update -p [email protected] --precise 0.29.0{:bash}`

pages/price-feeds/use-real-time-data/solana.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ pyth-solana-receiver-sdk ="x.y.z" # get the latest version from https://crates.i
2323
```
2424

2525
<Callout type="warning" emoji="">
26-
At the time of writing, [pyth-solana-receiver-sdk](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/solana/pyth_solana_receiver_sdk) is compatible with Anchor `v0.28.0{:js}`, `0.29.0{:js}`, and `0.30.1{:js}`.
27-
If you are on `0.30.0{:js}` or any other version, please move to `0.30.1{:js}`.
26+
At the time of writing, [pyth-solana-receiver-sdk](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/solana/pyth_solana_receiver_sdk) is compatible with Anchor `v0.28.0{:js}`, `v0.29.0{:js}`, and `v0.30.1{:js}`.
27+
If you are on `v0.30.0{:js}` or any other version, please move to `v0.30.1{:js}`.
2828
</Callout>
2929

3030
### Typescript SDK

0 commit comments

Comments
 (0)